moonsflyer 4 miesięcy temu
rodzic
commit
cb38e61491
2 zmienionych plików z 5 dodań i 9 usunięć
  1. 3 8
      phalapi/src/app/Api/Home.php
  2. 2 1
      phalapi/src/app/functions.php

+ 3 - 8
phalapi/src/app/Api/Home.php

@@ -517,18 +517,13 @@ class Home extends Api {
     }
 
     /**
-     * 获取分类下店铺列表
+     * 获取店铺地址列表
      * @desc 用于获取指定分类下店铺列表
      * @return int code 操作码,0表示成功
      * @return array list
      * @return array list[0]  店铺信息
-     * @return array list[0][uid] 用户店铺id
-     * @return array list[0][name] 店铺名称
-     * @return array list[0][thumb] 店铺图片
-     * @return array list[0][username] 会员名称
-     * @return array list[0][sale_nums] 销售时间
-     * @return array list[0][service_points] 服务评分
-     * @return array list[0][delivery_time] 配送时间
+     * @return array list[0][province] 店铺省
+     * @return array list[0][city] 店铺市
      * @return string msg 提示信息
      */
     public function getShopAddressList() {

+ 2 - 1
phalapi/src/app/functions.php

@@ -4444,6 +4444,7 @@ namespace App;
             ->select("province,city")
             ->where("type in (1,2,3)")
             ->fetchAll();
+        $province_arr = array_column($rs,'province');
 //        $shop_list = [];
 //        foreach($rs as &$v){
 //            $shopwhere['uid'] = $v['uid'];
@@ -4468,7 +4469,7 @@ namespace App;
 //            }
 //
 //        }
-        return $rs;
+        return $province_arr;
     }
 
     // 根据不同条件获取物流列表信息