...
|
...
|
@@ -822,6 +822,7 @@ class SecondController extends RestBaseController |
|
|
* @method POST
|
|
|
*
|
|
|
*
|
|
|
*@param name:id type:int require:1 other: desc:id
|
|
|
*@param name:name type:int require:1 other: desc:姓名
|
|
|
*@param name:province type:int require:1 other: desc:省
|
|
|
*@param name:city type:int require:1 other: desc:市
|
...
|
...
|
@@ -838,6 +839,7 @@ class SecondController extends RestBaseController |
|
|
* @throws
|
|
|
*/
|
|
|
public function editAddress(){
|
|
|
$id=input('id');
|
|
|
$userId=$this->getUserId();
|
|
|
$param = $this->request->param();
|
|
|
$validate = new Validate([
|
...
|
...
|
@@ -867,7 +869,7 @@ class SecondController extends RestBaseController |
|
|
$Address->setDefaultBefore($userId);
|
|
|
}
|
|
|
$param['user_id']=$userId;
|
|
|
$result=$Address->save($param);
|
|
|
$result=$Address->where('id',$id)->update($param);
|
|
|
if ($result>0){
|
|
|
$this->success('修改成功');
|
|
|
}else{
|
...
|
...
|
|