|
|
@@ -149,7 +149,7 @@ class Push
|
|
|
public function pushToChannel($channelId, $order, array $channel)
|
|
|
{
|
|
|
if ($order['status'] != 2) {
|
|
|
- return;
|
|
|
+ return ['success' => true];
|
|
|
}
|
|
|
$channelInfo = $channel['row'] ?? $channel;
|
|
|
# 通信
|
|
|
@@ -181,7 +181,7 @@ class Push
|
|
|
if ($result && $result['status'] != 1) {
|
|
|
$state = Dever::load(Order::class)->choose($order);
|
|
|
if ($state) {
|
|
|
- return;
|
|
|
+ return ['success' => true];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -189,10 +189,11 @@ class Push
|
|
|
# 下单成功
|
|
|
$update['status'] = 3;
|
|
|
Dever::db('seller/order')->update($order['id'], $update);
|
|
|
- return 'ok';
|
|
|
+ return ['success' => true];
|
|
|
} else {
|
|
|
# 下单失败
|
|
|
- return Dever::load(Order::class)->notify($order, '下单失败', $update);
|
|
|
+ Dever::load(Order::class)->notify($order, '下单失败', $update);
|
|
|
+ return ['success' => false];
|
|
|
}
|
|
|
}
|
|
|
|