测试API发货
This commit is contained in:
@@ -607,11 +607,12 @@ class WareController extends BaseAdminController
|
||||
if (empty($orderId)) {
|
||||
throw new Exception('订单id不能为空'. $orderId);
|
||||
}
|
||||
// $config = \Yii::$app->params;
|
||||
$config = \Yii::$app->params;
|
||||
$orderAutoReceivedTime = isset($config['product_order']['received_time']) ? $config['product_order']['received_time'] : 20;
|
||||
return \Yii::$app->queue->delay($orderAutoReceivedTime)->push(new ProductOrderAutoReceivedJob([
|
||||
\Yii::$app->queue->delay(20)->push(new ProductOrderAutoReceivedJob([
|
||||
'orderId' => $orderId
|
||||
]));
|
||||
return ['发货成功'];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user