Ver Fonte

配送方式

shish há 1 mês atrás
pai
commit
c73c1c4d2a

+ 1 - 1
app-ghs/controllers/ShMethodController.php

@@ -35,7 +35,7 @@ class ShMethodController extends BaseController
     public function actionGetSorts()
     {
         try {
-            $sorts = ShMethodClass::getSorts($this->shopId, $this->mainId);
+            $sorts = ShMethodClass::getSorts($this->mainId);
             util::success($sorts);
         } catch (\Exception $e) {
             util::fail($e->getMessage());

+ 2 - 3
biz-ghs/order/classes/ShMethodClass.php

@@ -16,11 +16,10 @@ class ShMethodClass extends BaseClass
 
     /**
      * 获取所有配送方式的排序和别名信息
-     * @param int $shopId 门店ID
      * @param int $mainId 商户ID
      * @return array
      */
-    public static function getSorts($shopId, $mainId)
+    public static function getSorts($mainId)
     {
         $list = [];
         $aliases = [
@@ -31,7 +30,7 @@ class ShMethodClass extends BaseClass
             4 => '快递'
         ];
         for ($style = 0; $style <= 4; $style++) {
-            $config = self::getByCondition(['shopId' => $shopId, 'style' => $style]);
+            $config = self::getByCondition(['mainId' => $mainId, 'style' => $style]);
             $sort = 0;
             $alias = $aliases[$style];
             $status = 1;