| xqd
@@ -588,15 +588,15 @@ class AlbumController extends Controller
|
|
|
if(!empty($price)){
|
|
|
$goods->price = $price->price;
|
|
|
$goods->mobile = $price->mobile;
|
|
|
- $address = AlbumAgentModel::where('id',$agent_id)->first();
|
|
|
- $goods->address = $address->address;
|
|
|
- $goods->realname = $address->realname;
|
|
|
}else{
|
|
|
$goods->price = '';
|
|
|
$goods->mobile = '';
|
|
|
$goods->address = '';
|
|
|
$goods->realname = '';
|
|
|
}
|
|
|
+ $address = AlbumAgentModel::where('id',$agent_id)->first();
|
|
|
+ $goods->address = $address->address;
|
|
|
+ $goods->realname = $address->realname;
|
|
|
$goods->is_favorite = 0;
|
|
|
$goods->favorite_id = '';
|
|
|
}
|