|
|
@@ -148,7 +148,7 @@ class User extends Api
|
|
|
if(isset($param['phone']) && UserInfoLogic::checkUserByInfo('phone', $this->auth->id, $param['phone']) == false) $this->error(__("手机号已存在"));
|
|
|
|
|
|
//地址时候去重
|
|
|
- if(!isset($param['area_code']) && isset($param['address']) && UserInfoLogic::checkUserByInfo('address', $this->auth->id, $param['address']) == false) $this->error(__("钱包地址已存在不能修改"));
|
|
|
+ if(isset($param['address']) && UserInfoLogic::checkUserByInfo('address', $this->auth->id, $param['address']) == false) $this->error(__("钱包地址已存在不能修改"));
|
|
|
|
|
|
if(isset($param['area_code']) && isset($param['area_name'])){
|
|
|
$resp = $userArea::setUserAddress($this->auth->id, $param['area_code'], $param['area_name']);
|