moshaorui 1 month ago
parent
commit
c1855bf11d

+ 0 - 4
app/Admin/Actions/Tools/InquiryHandle.php

@@ -48,15 +48,11 @@ class InquiryHandle extends AbstractTool
         $keys = $request->input('_key');
         if (is_array($keys) && count($keys) > 0) {
             $result = DistInquiry::distSetStatusProcessed($keys);
-            if ($result === false) {
-                return $this->response()->error('Failed to process!')->refresh();
-            }
             return $this->response()->success(admin_trans_label('update_success'))->refresh();
         } else {
             return $this->response()->error('No data selected!')->refresh();
         }
         // 你的代码逻辑
-
     }
 
 

+ 2 - 2
app/Distributor/Controllers/DistInquiryController.php

@@ -69,10 +69,10 @@ class DistInquiryController extends AdminDistController
             $grid->disableDeleteButton();
             $grid->disableBatchDelete();
             $grid->showViewButton();
-            if ($status == 1) {
+          //  if ($status == 1) {
                 //批量操作
                 $grid->tools([new InquiryHandle()]);
-            }
+          //  }
             //权限与排序
             $grid->model()->where('dist_id', getDistributorId())->where('status','>',0)->orderBy("id",'desc');
         });

+ 2 - 2
resources/views/distributor/pages/login.blade.php

@@ -113,7 +113,7 @@
                             placeholder="{{ trans('admin.captcha') }}"
                             required
                         >
-                        <img src="/prime-control/captcha?{{ time() }}" alt="captcha" class="captcha-img" onclick="this.src='/prime-control/captcha?'+Math.random()">
+                        <img src="/dist/captcha?{{ time() }}" alt="captcha" class="captcha-img" onclick="this.src='/dist/captcha?'+Math.random()">
 
                         <div class="form-control-position">
                             <i class="feather icon-image"></i>
@@ -185,7 +185,7 @@
     });
 
     function switchLanguage(lang) {
-        fetch(`/prime-control/language-switch?lang=${encodeURIComponent(lang)}`, {
+        fetch(`/dist/language-switch?lang=${encodeURIComponent(lang)}`, {
             method: 'GET'
         })
             .then(response => {