Commit 85f48bcd by 冷斌

update

parent 2b66ef3b
...@@ -137,9 +137,8 @@ class Model_Login extends PhalApi_Model_NotORM { ...@@ -137,9 +137,8 @@ class Model_Login extends PhalApi_Model_NotORM {
public function userLoginByThird($openid,$type,$nickname,$avatar,$source) { public function userLoginByThird($openid,$type,$nickname,$avatar,$source) {
$info=DI()->notorm->users $info=DI()->notorm->users
->select($this->fields) ->select($this->fields)
->where('openid=?',$openid) ->where('openid=? and login_type=? ',$openid,$type)
->fetchOne(); ->fetchOne();
$configpri=getConfigPri(); $configpri=getConfigPri();
if(!$info){ if(!$info){
/* 注册 */ /* 注册 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment