Explorar o código

feat(api): 添加共富区功能支持

- 在商户API中增加sharedProsperity条件判断
- 为共享繁荣功能设置固定ID值3447
- 保持原有商户ID获取逻辑不变
shichen hai 6 meses
pai
achega
60f4e94716
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      app/controller/api/store/merchant/Merchant.php

+ 2 - 0
app/controller/api/store/merchant/Merchant.php

@@ -120,6 +120,8 @@ class Merchant extends BaseController
120 120
             if (empty($params['mer_id'])) return app('json')->fail('店铺不存在');
121 121
             $id=$this->merId = $params['mer_id'];
122 122
             $is_commercetrade = 1;
123
+        } else if ($name == 'sharedProsperity') {
124
+            $id = 3447;
123 125
         }
124 126
         [$page, $limit] = $this->getPage();
125 127
         if($params['pageNum']!=''){