|
@@ -143,7 +143,7 @@ class Order extends Base
|
|
|
if($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());
|
|
|
if($kg==false){
|
|
|
return error_show(1004,"商品未找到");
|