|
@@ -759,7 +759,15 @@ class Sale extends HomeBaseController
|
|
|
|
|
|
if (!$val->check($param)) return json_show(1004, $val->getError());
|
|
|
|
|
|
- $order = Db::name('consult_bids')
|
|
|
+
|
|
|
+ $rs=Db::name('good_zixun')
|
|
|
+ ->field(true)
|
|
|
+ ->where(['is_del'=>0,'spuCode'=>$param['spuCode']])
|
|
|
+ ->findOrEmpty();
|
|
|
+ if (empty($rs)) return json_show(1003, "商品数据未找到");
|
|
|
+
|
|
|
+ if ($rs['order_type'] == 4) $order = $rs;
|
|
|
+ else $order = Db::name('consult_bids')
|
|
|
->field(true)
|
|
|
->where(['spuCode' => $param['spuCode'], 'is_del' => 0])
|
|
|
->find();
|