测试API发货
This commit is contained in:
@@ -596,10 +596,17 @@ class WareController extends BaseAdminController
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 订单发货接口
|
||||
* @return string[]
|
||||
* @throws Exception
|
||||
*/
|
||||
public function actionApiWareSend()
|
||||
{
|
||||
$order = \Yii::$app->request->post('order_id');
|
||||
if (empty($order)) {
|
||||
throw new Exception('订单id不能为空');
|
||||
}
|
||||
$orderAutoReceivedTime = isset($config['product_order']['received_time']) ? $config['product_order']['received_time'] : 7*24*3600;
|
||||
\Yii::$app->queue->delay($orderAutoReceivedTime)->push(new ProductOrderAutoReceivedJob([
|
||||
'orderId' => $order
|
||||
|
||||
Reference in New Issue
Block a user