23 lines
555 B
PHP
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);
|
|
}
|
|
}
|