|
@@ -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;
|
|
|
}
|
|
|
|