1.提交缺失的东西
This commit is contained in:
@ -49,10 +49,10 @@ class OrderController extends BaseApiController
|
||||
$post = $this->request->post();
|
||||
$post['user_id'] = $this->userId;
|
||||
$post['client'] = $this->client;
|
||||
$check = $this->validate($post, 'app\api\validate\OrderValidate.buy');
|
||||
if (true !== $check) {
|
||||
return $this->fail($check);
|
||||
}
|
||||
// $check = $this->validate($post, 'app\api\validate\OrderValidate.buy');
|
||||
// if (true !== $check) {
|
||||
// return $this->fail($check);
|
||||
// }
|
||||
|
||||
$action = $post['action'];
|
||||
$info = OrderLogic::info($post, $this->userId);
|
||||
|
||||
Reference in New Issue
Block a user