@@ -121,6 +121,16 @@ class App extends Base
$result = $this->wechat($data, $user, $account, $system, $source_type, $source);
+ if (isset($result['uid']) && $result['uid']) {
+ # 记录app登录日志
+ $appData = array('uid' => $result['uid'], 'source_type' => $source_type);
+ $app = Dever::db('passport/app')->one($appData);
+ if (!$app) {
+ $appData['system_id'] = $system;
+ Dever::db('passport/app')->insert($appData);
+ }
+
return $result;
}
@@ -72,6 +72,17 @@ class Reg extends Base
return $msg;
+ /**
+ * 检测手机号是否注册
+ * @return mixed
+ */
+ private function checkMobileExist()
+ {
+ $mobile = $this->checkMobileExists(1);
+ return 'ok';
/**
* 检测图形验证码
* @return mixed