panlumeng 3 سال پیش
والد
کامیت
57bcc288fc
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      application/Home/controller/Order.php

+ 3 - 0
application/Home/controller/Order.php

@@ -72,7 +72,9 @@ class Order extends Base
         if($id==""){
             return error_show(1004,"参数id 不能为空");
         }
+
         $order = Db::name("order")->alias('a')->where(["a.is_del"=>0,"a.accountid"=>$this->userinfo['id'],"a.id"=>$id])
+
             ->join("fc_order_post b","a.order_sn =b.order_sn","left")
             ->join("fc_addr c","b.addrid= c.id","left")
             ->join("fc_account e","a.accountid= e.id","left")
@@ -106,6 +108,7 @@ class Order extends Base
                         `a`.`unit_weight` AS `unit_weight`,
                         `a`.`unit` AS `unit` ")
             ->find();
+        //var_dump($order);
         if(empty($order)){
             return error_show(1005,"未找到订单数据");
         }