1.提交缺失的东西
This commit is contained in:
@ -92,14 +92,14 @@ class UserAddressController extends BaseApiController
|
|||||||
$post = $this->request->post();
|
$post = $this->request->post();
|
||||||
$result = $this->validate($post, 'app\api\validate\UserAddress.add');
|
$result = $this->validate($post, 'app\api\validate\UserAddress.add');
|
||||||
if ($result === true) {
|
if ($result === true) {
|
||||||
$user_id = $this->user_id;
|
$user_id = $this->userId;
|
||||||
$result = UserAddressLogic::addUserAddress($user_id, $post);
|
$result = UserAddressLogic::addUserAddress($user_id, $post);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$this->_success('添加成功', $result);
|
return $this->success('添加成功');
|
||||||
}
|
}
|
||||||
$result = '添加失败';
|
return $result = '添加失败';
|
||||||
}
|
}
|
||||||
$this->_error($result);
|
$this->fail($result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user