Просмотр исходного кода

APP小程序-注册登录-(beta)用户同意用户协议记录

xupuyuan месяцев назад: 11
Родитель
Сommit
a8166e643e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/controller/api/Auth.php

+ 1 - 1
app/controller/api/Auth.php

@@ -1924,7 +1924,7 @@ class Auth extends BaseController
1924 1924
 
1925 1925
             $tokenInfo = $repository->createToken($user);
1926 1926
             $repository->loginAfter($user);
1927
-            $useragree = Db::name('user_operating_record')->where('uid', $user->uid)->where('operation_type', 1)->where('module', 1)->find();
1927
+            $useragree = Db::name('user_operating_record')->where('uid', $user->uid)->where('operation_type', 1)->where('operation_model', 1)->find();
1928 1928
             if (!$useragree){
1929 1929
                 $repository->createUserOperatingRecord($user->uid, 1, 1, '用户同意用户协议记录');
1930 1930
             }