Răsfoiți Sursa

修复产品BUG

moshaorui 1 lună în urmă
părinte
comite
e5f7742c7a

+ 1 - 1
app/Distributor/Controllers/ApiController.php

@@ -22,7 +22,7 @@ class ApiController extends Controller
         if ($q != null) {
             // 模糊搜索
             $obj = new DistProduct();
-            return $obj->model()->where('title', 'like', "%$q%")->where('dist_id', getDistributorId())->where('status', 1)->paginate(null, ['id', 'title as text']);
+            return $obj->model()->where('title', 'like', "%$q%")->where('dist_id', getDistributorId())->where('status', 2)->paginate(null, ['id', 'title as text']);
         } else {
             // 获取最新的N个
             $selectOptionsNew =  DistProduct::selectOptionsNew();

+ 4 - 0
lang/en/global.php

@@ -204,6 +204,10 @@ return [
         'top_menu'              => 'Top Menu',
         'bottom_menu'           => 'Bottom Menu',
         'album_folder'          => 'Album Folder',
+        'approval_failed'       => 'Approval Failed',
+        'pending_approval'      => 'Pending Approval',
+        'distributor_name'      => 'Distributor Name',
+        'product_audit'         => 'Product Audit',
     ],
     'options' => [
         //

+ 6 - 0
lang/zh_CN/global.php

@@ -113,6 +113,7 @@ return [
         'video_src'             => '视频文件',
         'review_reply'          => '回复',
         'title_en'              => '标题',
+
     ],
     'labels' => [
         'list'         => '列表',
@@ -211,6 +212,11 @@ return [
         'top_menu'              => '顶部菜单',
         'bottom_menu'           => '底部菜单',
         'album_folder'          => '相册分类',
+        'approval_failed'       => '审批失败',
+        'pending_approval'      => '待审批',
+        'distributor_name'      => '分销商名称',
+        'audit_success'      => '审核成功',
+        'product_audit'      => '产品审核',
     ],
     'options' => [
         //