|
@@ -53,7 +53,7 @@ class HuafeiOrderIndependentAccount extends Command
|
|
53
|
// 订单状态(0:待发货;1:待收货;2:待评价;3:已完成;4已申请退款;-1:已退款)5未支付 6已取消'
|
53
|
// 订单状态(0:待发货;1:待收货;2:待评价;3:已完成;4已申请退款;-1:已退款)5未支付 6已取消'
|
|
54
|
$status = [2];
|
54
|
$status = [2];
|
|
55
|
// 普通订单
|
55
|
// 普通订单
|
|
56
|
- $cursor = Db::table('rrx_store_order')->where('is_independentaccount', 0)->whereIn('status', $status)->cursor();
|
|
|
|
|
|
56
|
+ $cursor = Db::table('rrx_order_huafei')->where('is_independentaccount', 0)->whereIn('status', $status)->cursor();
|
|
57
|
|
57
|
|
|
58
|
/** @var StoreOrderRepository $storeOrderRepository */
|
58
|
/** @var StoreOrderRepository $storeOrderRepository */
|
|
59
|
$storeOrderRepository = app()->make(StoreOrderRepository::class);
|
59
|
$storeOrderRepository = app()->make(StoreOrderRepository::class);
|
|
@@ -78,7 +78,7 @@ class HuafeiOrderIndependentAccount extends Command
|
|
78
|
|
78
|
|
|
79
|
if ($isSuccessed) {
|
79
|
if ($isSuccessed) {
|
|
80
|
Db::name("log")->insert(array('data' => '话费-订单分账:' . json_encode($value, JSON_FORCE_OBJECT)));//日志记录
|
80
|
Db::name("log")->insert(array('data' => '话费-订单分账:' . json_encode($value, JSON_FORCE_OBJECT)));//日志记录
|
|
81
|
- Db::table('rrx_store_order')->where('order_sn', $value['order_sn'])->update(['is_independentaccount' => 1]);
|
|
|
|
|
|
81
|
+ Db::table('rrx_order_huafei')->where('order_sn', $value['order_sn'])->update(['is_independentaccount' => 1]);
|
|
82
|
}
|
82
|
}
|
|
83
|
}
|
83
|
}
|
|
84
|
}
|
84
|
}
|