...
|
...
|
@@ -19,7 +19,18 @@ class UserAddress extends Model |
|
|
* 追加字段
|
|
|
* @var array
|
|
|
*/
|
|
|
protected $append = ['area'];
|
|
|
protected $append = [
|
|
|
'area',
|
|
|
'user_address_id'
|
|
|
];
|
|
|
|
|
|
/**
|
|
|
* 新增user_address_id
|
|
|
*/
|
|
|
public function getUserAddressIdAttr($value, $data)
|
|
|
{
|
|
|
return $data['id'];
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 地区名称
|
...
|
...
|
|