afa 5 сар өмнө
parent
commit
6bf3f6f620

+ 1 - 1
app/api/controller/Shops.php

@@ -43,7 +43,7 @@ class Shops extends Base
             $this->error('参数有误');
         }
      
-        return $this->success('ok', $shopList->where('id', $shop_id)->value('type_spec'));  
+        return $this->success('ok',  json_decode($shopList->where('id', $shop_id)->value('type_spec'), true));  
     }
 
 

+ 1 - 1
app/api/route/route.php

@@ -19,7 +19,7 @@ Route::group('user', function () {
       Route::rule('shops','shops/getShop','POST');
 
       //规格
-      Route::rule('spec','spec/getSpec','POST');
+      Route::rule('specs','shops/getSpec','POST');
 
   })->middleware(AllowCrossDomain::class);