Jelajahi Sumber

上传方法变更

18838166547 1 tahun lalu
induk
melakukan
80091f80bd

+ 4 - 4
app/admin/view/store/store_joinin_detail.html

@@ -182,8 +182,8 @@
                <th>{$Think.lang.identification_photo}:</th>
                <td colspan="20">
                    {notempty name="joinin_detail.business_licence_number_electronic"}
-                   <a data-lightbox="lightbox-image"  href="{:get_member_idcard_image($joinin_detail['business_licence_number_electronic'])}">
-                       <img src="{:get_member_idcard_image($joinin_detail['business_licence_number_electronic'])}" alt="" height="200"/>
+                   <a data-lightbox="lightbox-image"  href="{:get_store_joinin_imageurl($joinin_detail['business_licence_number_electronic'])}">
+                       <img src="{:get_store_joinin_imageurl($joinin_detail['business_licence_number_electronic'])}" alt="" height="200"/>
                    </a>
                    {/notempty}
                </td>
@@ -192,8 +192,8 @@
                <th>{$Think.lang.business_author_letter}:</th>
                <td colspan="20">
                    {notempty name="joinin_detail.business_author_letter"}
-                   <a data-lightbox="lightbox-image"  href="{:get_member_idcard_image($joinin_detail['business_author_letter'])}">
-                       <img src="{:get_member_idcard_image($joinin_detail['business_author_letter'])}" alt="" height="200"/>
+                   <a data-lightbox="lightbox-image"  href="{:get_store_joinin_imageurl($joinin_detail['business_author_letter'])}">
+                       <img src="{:get_store_joinin_imageurl($joinin_detail['business_author_letter'])}" alt="" height="200"/>
                    </a>
                    {/notempty}
                </td>

+ 2 - 2
app/home/controller/BaseMember.php

@@ -217,8 +217,8 @@ class BaseMember extends BaseHome
 
     public function getIdCardInfo2($memberInfo)
     {
-        $url = get_member_idcard_image($memberInfo['business_licence_number_electronic']);
-        $url2 = get_member_idcard_image($memberInfo['business_author_letter']);
+        $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->getBase64($url2);
         $res = $this->postAiOcr($base64,$base642);

+ 4 - 4
app/home/controller/MemberAuth.php

@@ -159,7 +159,7 @@ class MemberAuth extends BaseMember
         $file_name = input('param.id');
         if (!empty($_FILES[$file_name]['name'])) {
 
-            $res = ds_upload_pic(ATTACH_IDCARD_IMAGE, $file_name);
+            $res = ds_upload_pic(ATTACH_STORE_JOININ, $file_name);
             if (!$res['code']) {
                 ds_json_encode(10001, $res['msg']);
             }
@@ -172,7 +172,7 @@ class MemberAuth extends BaseMember
 //            if (!$member_model->editMember(array(array('member_id', '=', $this->member_info['member_id']), array('member_auth_state', 'in', array(0, 2))), $member_array, $this->member_info['member_id'])) {
 //                ds_json_encode(10001, lang('ds_common_save_fail'));
 //            }
-            ds_json_encode(10000, '', array('file_name' => $res['data']['file_name'], 'file_path' => get_member_idcard_image($res['data']['file_name'])));
+            ds_json_encode(10000, '', array('file_name' => $res['data']['file_name'], 'file_path' => get_store_joinin_imageurl($res['data']['file_name'])));
         }
         ds_json_encode(10001, lang('param_error'));
     }
@@ -201,8 +201,8 @@ class MemberAuth extends BaseMember
         $data3 = session('member_image3_'.$memberId);
 
         ds_json_encode(10000, '',
-            array('image2' =>get_member_idcard_image($data2['business_licence_number_electronic']),
-                  'image3'=>get_member_idcard_image($data3['business_author_letter']))
+            array('image2' =>get_store_joinin_imageurl($data2['business_licence_number_electronic']),
+                  'image3'=>get_store_joinin_imageurl($data3['business_author_letter']))
         );
     }
 

+ 2 - 2
app/home/view/default/member/sellerjoininc2c/pay.html

@@ -148,7 +148,7 @@
         <th>{$Think.lang.identification_photo}:</th>
         <td colspan="20">
             {notempty name="$joinin_detail.business_licence_number_electronic"}
-            <a data-lightbox="lightbox-image"  href="{:get_member_idcard_image($joinin_detail['business_licence_number_electronic'])}"> <img src="{:get_member_idcard_image($joinin_detail['business_licence_number_electronic'])}" alt="" /> </a>
+            <a data-lightbox="lightbox-image"  href="{:get_store_joinin_imageurl($joinin_detail['business_licence_number_electronic'])}"> <img src="{:get_store_joinin_imageurl($joinin_detail['business_licence_number_electronic'])}" alt="" /> </a>
             {else /}
             {$Think.lang.not_uploaded}
             {/notempty}
@@ -158,7 +158,7 @@
           <th>{$Think.lang.business_author_letter}:</th>
           <td colspan="20">
               {notempty name="$joinin_detail.business_author_letter"}
-              <a data-lightbox="lightbox-image"  href="{:get_member_idcard_image($joinin_detail['business_author_letter'])}"> <img src="{:get_member_idcard_image($joinin_detail['business_author_letter'])}" alt="" /> </a>
+              <a data-lightbox="lightbox-image"  href="{:get_store_joinin_imageurl($joinin_detail['business_author_letter'])}"> <img src="{:get_store_joinin_imageurl($joinin_detail['business_author_letter'])}" alt="" /> </a>
               {else /}
               {$Think.lang.not_uploaded}
               {/notempty}

+ 2 - 2
app/home/view/default/seller/sellerinfo/index.html

@@ -93,7 +93,7 @@
             <th>身份证件正面照片:</th>
             <td colspan="20">
                 {notempty name="joinin_detail.business_licence_number_electronic"}
-                <a data-lightbox="lightbox-image"  href="{:get_member_idcard_image($joinin_detail.business_licence_number_electronic)}"> <img src="{:get_member_idcard_image($joinin_detail.business_licence_number_electronic)}" alt="" /> </a>
+                <a data-lightbox="lightbox-image"  href="{:get_store_joinin_imageurl($joinin_detail.business_licence_number_electronic)}"> <img src="{:get_store_joinin_imageurl($joinin_detail.business_licence_number_electronic)}" alt="" /> </a>
                 {/notempty}
             </td>
         </tr>
@@ -101,7 +101,7 @@
             <th>身份证件反面照片:</th>
             <td colspan="20">
                 {notempty name="joinin_detail.business_author_letter"}
-                <a data-lightbox="lightbox-image"  href="{:get_member_idcard_image($joinin_detail.business_author_letter)}"> <img src="{:get_member_idcard_image($joinin_detail.business_author_letter)}" alt="" /> </a>
+                <a data-lightbox="lightbox-image"  href="{:get_store_joinin_imageurl($joinin_detail.business_author_letter)}"> <img src="{:get_store_joinin_imageurl($joinin_detail.business_author_letter)}" alt="" /> </a>
                 {/notempty}
             </td>
         </tr>