测试API发货
This commit is contained in:
@@ -29,6 +29,7 @@ use yii\web\UploadedFile;
|
||||
*/
|
||||
class WareController extends BaseAdminController
|
||||
{
|
||||
public $optional = ['api-ware-send'];
|
||||
/**
|
||||
* @doc-name 仓库药品列表
|
||||
* @doc-param int status 状态1下架2上架 / optional
|
||||
@@ -595,6 +596,18 @@ class WareController extends BaseAdminController
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function actionApiWareSend()
|
||||
{
|
||||
return ['发货成功'];
|
||||
$order = \Yii::$app->request->post('order_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
|
||||
]));
|
||||
return ['发货成功'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @doc-name 快递公司
|
||||
* @doc-return mixed @List{id,name-string-公司名称,code-string-公司编码,type-string-公司类型,sort-int-排序} 快递公司
|
||||
|
||||
Reference in New Issue
Block a user