|
|
@@ -12,7 +12,9 @@ namespace app\controller\api;
|
|
12
|
12
|
|
|
13
|
13
|
use AlibabaCloud\Client\AlibabaCloud;
|
|
14
|
14
|
use app\common\dao\store\order\StoreOrderDao;
|
|
|
15
|
+use app\common\dao\user\UserCertificationDao;
|
|
15
|
16
|
use app\common\model\user\User;
|
|
|
17
|
+use app\common\model\user\UserCertification;
|
|
16
|
18
|
use app\common\repositories\merchant\order\OrderGzcRepository;
|
|
17
|
19
|
use app\common\repositories\merchant\order\OrderMerchantRepository;
|
|
18
|
20
|
use app\common\repositories\store\order\StoreGroupOrderRepository;
|
|
|
@@ -476,6 +478,13 @@ class Auth extends BaseController
|
|
476
|
478
|
if (!$useragree){
|
|
477
|
479
|
$repository->createUserOperatingRecord($user->uid, 1, 1, '用户同意用户协议记录');
|
|
478
|
480
|
}
|
|
|
481
|
+ // 登录增加是否实名字段
|
|
|
482
|
+ $userCertificationDao = new UserCertificationDao();
|
|
|
483
|
+ $isCertification = $userCertificationDao->getUserCertification($account);
|
|
|
484
|
+ $user['is_ertification'] = 0;
|
|
|
485
|
+ if (!empty($isCertification)) {
|
|
|
486
|
+ $user['is_ertification'] = 1;
|
|
|
487
|
+ }
|
|
479
|
488
|
return app('json')->success($repository->returnToken($user, $tokenInfo));
|
|
480
|
489
|
}
|
|
481
|
490
|
|