wugg 2 年之前
父節點
當前提交
b0a6ead47e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/Home/controller/Order.php

+ 1 - 1
application/Home/controller/Order.php

@@ -143,7 +143,7 @@ class Order extends Base
         if($id==""){
         if($id==""){
             return error_show(1004,"unit_id不能为空");
             return error_show(1004,"unit_id不能为空");
         }
         }
-        $kg= Db::name('good')->where(["is_del" => 0,"id"=>$id,"status"=>1,"type"=>$this->userinfo['type']])->field("id,good_name,good_desc,,good_url,unit as name, unit_weight as weight,limit_num")->find();
+        $kg= Db::name('good')->where(["is_del" => 0,"id"=>$id,"status"=>1,"type"=>$this->userinfo['type']])->field("id,good_name,good_desc,good_url,unit as name, unit_weight as weight,limit_num")->find();
        // var_dump(Db::name('unit')->where(["is_del" => 0,"id"=>$id,"status"=>1])->getLastSql());
        // var_dump(Db::name('unit')->where(["is_del" => 0,"id"=>$id,"status"=>1])->getLastSql());
         if($kg==false){
         if($kg==false){
             return error_show(1004,"商品未找到");
             return error_show(1004,"商品未找到");