Browse Source

企业授权书/身份证认证4

18838166547 1 year ago
parent
commit
f14b1d12cd
2 changed files with 6 additions and 2 deletions
  1. 3 2
      app/api/controller/MobileMember.php
  2. 3 0
      app/api/controller/Sellerjoinin.php

+ 3 - 2
app/api/controller/MobileMember.php

@@ -81,9 +81,10 @@ class MobileMember extends MobileHome
 
     public function getIdCardInfo2($memberInfo)
     {
-        $url = get_member_idcard_image($memberInfo['member_idcard_image2']);
+        $url = get_store_joinin_imageurl($memberInfo['business_licence_number_electronic']);
+        $url2 = get_store_joinin_imageurl($memberInfo['business_author_letter']);
         $base64 = $this->getBase64($url);
-        $base642 = $this->getNegative();
+        $base642 = $this->getBase64($url2);
         $res = $this->postAiOcr($base64,$base642);
 
         return $res;

+ 3 - 0
app/api/controller/Sellerjoinin.php

@@ -153,6 +153,9 @@ class Sellerjoinin extends MobileMember
             }
         }
         if ($param['store_type'] == 1) {
+            if (empty($param['business_author_letter'])) {
+                ds_json_encode(10001,'请上传身份证背面照片');
+            }
             $res = $this->getIdCardInfo2($param);
             if ($res['code'] == 200) {
                 $info = $res['data'];