|
|
@@ -472,7 +472,7 @@ class Auth extends BaseController
|
|
472
|
472
|
$tokenInfo = $repository->createToken($user);
|
|
473
|
473
|
|
|
474
|
474
|
$repository->loginAfter($user);
|
|
475
|
|
- $useragree = Db::name('user_operating_record')->where('uid', $user['id'])->where('operation_type', 1)->where('module', 1)->find();
|
|
|
475
|
+ $useragree = Db::name('user_operating_record')->where('uid', $user['id'])->where('operation_model', 1)->where('operation_type', 1)->find();
|
|
476
|
476
|
if (!$useragree){
|
|
477
|
477
|
$repository->createUserOperatingRecord($user->uid, 1, 1, '用户同意用户协议记录');
|
|
478
|
478
|
}
|
|
|
@@ -1625,7 +1625,7 @@ class Auth extends BaseController
|
|
1625
|
1625
|
// $repository->bindSpread($user, intval($data['spread']));
|
|
1626
|
1626
|
$tokenInfo = $repository->createToken($user);
|
|
1627
|
1627
|
$repository->loginAfter($user);
|
|
1628
|
|
- $useragree = Db::name('user_operating_record')->where('uid', $user['id'])->where('operation_type', 1)->where('module', 1)->find();
|
|
|
1628
|
+ $useragree = Db::name('user_operating_record')->where('uid', $user['id'])->where('operation_model', 1)->where('operation_type', 1)->find();
|
|
1629
|
1629
|
if (!$useragree){
|
|
1630
|
1630
|
$repository->createUserOperatingRecord($user->uid, 1, 1, '用户同意用户协议记录');
|
|
1631
|
1631
|
}
|
|
|
@@ -1789,7 +1789,7 @@ class Auth extends BaseController
|
|
1789
|
1789
|
}
|
|
1790
|
1790
|
if(isset($result['code']) && $result['code'] == 200){
|
|
1791
|
1791
|
$user = $repository->accountByUser($result['user']['account']);
|
|
1792
|
|
- $useragree = Db::name('user_operating_record')->where('uid', $user['id'])->where('operation_type', 1)->where('module', 1)->find();
|
|
|
1792
|
+ $useragree = Db::name('user_operating_record')->where('uid', $user['id'])->where('operation_model', 1)->where('operation_type', 1)->find();
|
|
1793
|
1793
|
if (!$useragree){
|
|
1794
|
1794
|
$repository->createUserOperatingRecord($user->uid, 1, 1, '用户同意用户协议记录');
|
|
1795
|
1795
|
}
|