1.提交缺失的东西

This commit is contained in:
2025-05-16 15:40:25 +08:00
parent 78c66b5e30
commit 19a38fb90c

View File

@ -92,14 +92,14 @@ class UserAddressController extends BaseApiController
$post = $this->request->post();
$result = $this->validate($post, 'app\api\validate\UserAddress.add');
if ($result === true) {
$user_id = $this->user_id;
$user_id = $this->userId;
$result = UserAddressLogic::addUserAddress($user_id, $post);
if ($result) {
$this->_success('添加成功', $result);
return $this->success('添加成功');
}
$result = '添加失败';
return $result = '添加失败';
}
$this->_error($result);
$this->fail($result);
}