Sfoglia il codice sorgente

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

- 在商户API中增加sharedProsperity条件判断
- 为共享繁荣功能设置固定ID值3447
- 保持原有商户ID获取逻辑不变
shichen 6 mesi fa
parent
commit
60f4e94716
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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']!=''){