allocatr/application/worker/controller/OrderAbnormal.php
2025-04-20 14:02:17 +08:00

23 lines
555 B
PHP

<?php
namespace app\worker\controller;
use app\common\controller\WorkerApi;
class OrderAbnormal extends WorkerApi
{
protected $noNeedLogin = [];
public function create()
{
$params = $this->request->request();
$validate = $this->validate($params, \app\worker\validate\OrderAbnormal::class . '.create');
if ($validate !== true) {
$this->error($validate);
}
$res = $this->getOrderAbnormalService()->create($this->user['id'], $params);
$this->success('操作成功', $res);
}
}