测试API发货

This commit is contained in:
2024-12-25 17:36:12 +08:00
parent 1a470907e9
commit fd6114c45e

View File

@@ -603,14 +603,13 @@ class WareController extends BaseAdminController
*/
public function actionApiWareSend()
{
$order = \Yii::$app->request->post();
ds($order);
if (empty($order)) {
throw new Exception('订单id不能为空'. $order);
$orderId = \Yii::$app->request->post();
if (empty($orderId)) {
throw new Exception('订单id不能为空'. $orderId);
}
$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
'orderId' => $orderId
]));
return ['发货成功'];
}