...
|
...
|
@@ -89,14 +89,7 @@ class UserAddress extends Model |
|
|
if($data['isdefault'] == '1'){
|
|
|
self::where('user_id',$this['user_id'])->update(['isdefault'=>'0']);
|
|
|
}
|
|
|
$isdefault = $data['isdefault'];
|
|
|
return $this->allowField(true)
|
|
|
->save(array_merge(compact(
|
|
|
'province_id',
|
|
|
'city_id',
|
|
|
'district_id',
|
|
|
'isdefault'
|
|
|
), $data));
|
|
|
return $this->save(array_merge(compact('province_id', 'city_id', 'district_id'), $data));
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|