摘要: 多个应用 入sina qq msn 豆瓣 等 在手机登录时或终端登录时如果统一可以根据硬件做 gettid()-为了保证唯一性:方案一: 事先生成唯一验证码:使用一个isue 设置为1 limit1方案二: 详情见work唯一串配合数据库唯一键特性。oauth_token client_id expires scope uid 把token放到一个表里每次根据token 换取uid 把用户的uid放到缓存里。每次都把token 换成uid和你想要的数据 阅读全文
posted @ 2013-10-25 20:04 jason&li 阅读(233) 评论(0) 推荐(0)
摘要: function unik(){ $str=array('1','2','3','4','5','6','7','8','9','a','b','c','d','e','f','g','h','i','j','k','l','m','n&# 阅读全文
posted @ 2013-10-25 18:34 jason&li 阅读(280) 评论(0) 推荐(0)
摘要: 首先让其自动加载??? 在YiiBase.php里面 改写autoload方法: /** * Class autoload loader. * This method is provided to be invoked within an __autoload() magic method. * @param string $className class name * @return boolean whether the class has been loaded successfully */ public static function autoload($classNa... 阅读全文
posted @ 2013-10-25 17:48 jason&li 阅读(211) 评论(0) 推荐(0)
摘要: 1==>new RegisterBase($email, $password, $repassword, $client_id, $client_secret, $is_from) 1.1==> doRegister() 1.1.1 ==>appid 1.1.2 ==>检测邮箱 1.1.3 ==>检测密码 1.1.4 ==>UC——USERID获得uuid // is_use=0 AND id>10000 ORDER BY sort DESC LIMIT 1"; 把is_use改为12==>$status = uc_user_regis 阅读全文
posted @ 2013-10-25 17:28 jason&li 阅读(590) 评论(0) 推荐(0)