浏览代码

Merge branch 'develop' of http://git.caihongxingqiu.net/rainbow/shop-service into develop

xielin 6 年之前
父节点
当前提交
c12226dd33
共有 3 个文件被更改,包括 5 次插入3 次删除
  1. 1 1
      app/Http/Controllers/V1/ShopController.php
  2. 2 1
      config/customer.php
  3. 2 1
      routes/api.php

+ 1 - 1
app/Http/Controllers/V1/ShopController.php

@@ -29,7 +29,7 @@ class ShopController extends Controller {
         }
         $res['data']  = Shop::where('shop_id',$data['id'])->first();
         if($res){
-            return $this->jsonSuccess(['data'=>$res]);
+            return $this->jsonSuccess($res);
         }else{
             return $this->jsonError('获取失败');
         }

+ 2 - 1
config/customer.php

@@ -1,5 +1,6 @@
 <?php
 //此文件为apollo配置文件模板,禁止修改移动
 return [
-    'app_secret' => 'aaaaaaaaaaa'
+    'app_secret' => 'aaaaaaaaaaa',
+    'app_service_url' =>'https://api.dev.caihongxingqiu.com'
 ];

+ 2 - 1
routes/api.php

@@ -22,13 +22,14 @@ $api->version('v1', [
     $api->group(['middleware' => 'auth:api'], function ($api) {
 
     });
+    $api->post('view', 'ShopController@getShop');
     //获取商户列表
     $api->post('getShopList', 'ShopController@getShopList');
     //登录+验签
     $api->group(['middleware' => ['chxq_jwt_auth','chxq_sign']], function ($api) {
 
         //获取商户详情
-        $api->post('view', 'ShopController@getShop');
+
     });
     //仅验签
     $api->group(['middleware' => 'chxq_sign'], function ($api) {