|
|
@@ -45,7 +45,7 @@ class Order extends Base
|
|
|
{
|
|
|
try {
|
|
|
$param = $request->all();
|
|
|
- $param['poi_id'] = $request->user['store_id'];
|
|
|
+// $param['poi_id'] = $request->user['store_id'];
|
|
|
$productType = $this->goodsService->productType();
|
|
|
$data = $this->service->setModel()->getList($param,['product' => function($query) use($productType){
|
|
|
$query->field("product_id,product_name,product_type,is_new,price,line_price")->append(['types'])->withAttr(['types' => function($query,$resp) use($productType){
|
|
|
@@ -353,7 +353,7 @@ class Order extends Base
|
|
|
if (!is_array($param)) return error($param);
|
|
|
$order = (new SaasOrder)->where("out_order_no",$param["order"])->with(['poi'])->findOrEmpty();
|
|
|
if ($order->isEmpty()) return error("关联订单错误");
|
|
|
- if ($order['status'] <> 1) return error("关联订单错误");
|
|
|
+ if (!in_array($order['status'],[1,6,7])) return error("关联订单错误");
|
|
|
if (empty($order['item_order_id'])) return error("订单数据不完整");
|
|
|
$data = (new OrderData)->config([
|
|
|
"appid" => sConf("wechat.mini_appid"),
|