Browse Source

后台上传检验文件问题

evoxwht 4 năm trước cách đây
mục cha
commit
6d80ec7b16
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      crmeb/app/adminapi/controller/v1/setting/SystemConfig.php

+ 1 - 1
crmeb/app/adminapi/controller/v1/setting/SystemConfig.php

@@ -289,7 +289,7 @@ class SystemConfig extends AuthController
         }
         if (isset($post['weixin_ckeck_file'])) {
             $from = public_path() . $post['weixin_ckeck_file'];
-            $to = public_path() . explode('/', $post['weixin_ckeck_file'])[2];
+            $to = public_path() . array_reverse(explode('/', $post['weixin_ckeck_file']))[0];
             @copy($from, $to);
         }
         if (isset($post['admin_port'])) {