|
@@ -2918,4 +2918,27 @@ class Sale extends Base
|
|
|
return error_show(1003,"更新失败");
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ public function goodzxinfo(){
|
|
|
+ $orderCode= isset($this->post['spuCode'])&&$this->post['spuCode']!=''?trim($this->post['spuCode']):"";
|
|
|
+ if($orderCode==""){
|
|
|
+ return error_show(1003,"参数spuCode不能为空");
|
|
|
+ }
|
|
|
+ $order= Db::name("good_zixun")->where(["spuCode"=>$orderCode,"is_del"=>0])->find();
|
|
|
+ if(empty($order)){
|
|
|
+ return error_show(1003,"订单数据未找到");
|
|
|
+ }
|
|
|
+ $unit =Db::name("unit")->where(["id"=>$order['good_unit']])->find();
|
|
|
+ if($order['brand_id']!=0){
|
|
|
+ $brand=Db::name("brand")->where(["id"=>$order['brand_id']])->find();
|
|
|
+ $order["brand_name"]=isset($brand['brand_name'])?$brand['brand_name']:"";
|
|
|
+ }else{
|
|
|
+ $order["brand_name"]="";
|
|
|
+ $order["brand_id"]="";
|
|
|
+ }
|
|
|
+ $order['unit'] = isset($unit['unit'])?$unit['unit']:'';
|
|
|
+ $order['cat_info'] = made($order['cat_id'],[]);
|
|
|
+ $order['noble_name']=isset($order['noble_metal'])&&$order['noble_metal']!=0?$this->noble[$order['noble_metal']] :"";
|
|
|
+ return app_show(0,"获取成功",$order);
|
|
|
+ }
|
|
|
}
|