Explorar o código

实名认证修改bug:证件类型错误

shichen hai 9 meses
pai
achega
20a38c4190
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app/controller/api/user/User.php

+ 1 - 0
app/controller/api/user/User.php

@@ -1017,6 +1017,7 @@ class User extends BaseController
1017
             }
1017
             }
1018
             if ($result['image_status'] == "normal" && $result['idcard_number_type'] == 1) {
1018
             if ($result['image_status'] == "normal" && $result['idcard_number_type'] == 1) {
1019
                 $params['status'] = 1;
1019
                 $params['status'] = 1;
1020
+                $params['card_type'] = $cardType;
1020
                 $res = $this->repository->add_cer($params, $member_id);
1021
                 $res = $this->repository->add_cer($params, $member_id);
1021
                 if ($res) {
1022
                 if ($res) {
1022
                     $userRepository = app()->make(UserRepository::class);
1023
                     $userRepository = app()->make(UserRepository::class);