Explorar el Código

'12312323-221'

zory hace 7 horas
padre
commit
79ad15597a
Se han modificado 2 ficheros con 3 adiciones y 1 borrados
  1. 1 1
      app/controller/api/Home.php
  2. 2 0
      app/controller/merchant/Order.php

+ 1 - 1
app/controller/api/Home.php

@@ -40,7 +40,7 @@ class Home extends Base
                     "cover" => "https://washmy.oss-cn-guangzhou.aliyuncs.com/storage/dc7fd761c2e2af9c340f20677f8f115d942f0bde.png"
                     "cover" => "https://washmy.oss-cn-guangzhou.aliyuncs.com/storage/dc7fd761c2e2af9c340f20677f8f115d942f0bde.png"
                 ]
                 ]
             ];
             ];
-            $store = (new SaasStore)->where("poi_id",$param['store'])->field("poi_name,start_at,end_at,longitude,latitude,service_mobile,poi_id")->findOrEmpty();
+            $store = (new SaasStore)->where("poi_id",$param['store'])->field("poi_name,start_at,end_at,longitude,latitude,service_mobile,poi_id,poi_city,poi_address")->findOrEmpty();
             $goods = (new SaasGoods)->where("poi_id",$param['store'])->where("status",1)->field("product_id,product_name,image_list,category,price,line_price,sale_stock,id")->limit(10)->order('id','desc')->select()->toArray();
             $goods = (new SaasGoods)->where("poi_id",$param['store'])->where("status",1)->field("product_id,product_name,image_list,category,price,line_price,sale_stock,id")->limit(10)->order('id','desc')->select()->toArray();
             return success("ok",compact('banner','store','goods'));
             return success("ok",compact('banner','store','goods'));
         } catch (\Throwable $th) {
         } catch (\Throwable $th) {

+ 2 - 0
app/controller/merchant/Order.php

@@ -44,6 +44,8 @@ class Order extends Base
                     }
                     }
                     return $productTypeArr[$resp['product_type']]??'';
                     return $productTypeArr[$resp['product_type']]??'';
                 }]);
                 }]);
+            },'user' => function($query){
+                $query->field("openid,nickname,avatar");
             }],true,['end_time'],["end_time" => function ($resp,$next) {
             }],true,['end_time'],["end_time" => function ($resp,$next) {
                 return timeDiff(strtotime("+30 minutes",strtotime($next['create_at'])),time());
                 return timeDiff(strtotime("+30 minutes",strtotime($next['create_at'])),time());
             }]);
             }]);