...
|
...
|
@@ -2207,7 +2207,6 @@ class User extends Api |
|
|
$user = Db::name('user')->where('id',$user_id)->field('id,is_vip')->find();
|
|
|
$data['info'] = Db::name('iphone')
|
|
|
->where('user_id',$user_id)
|
|
|
->where('status',2)
|
|
|
->select();
|
|
|
$rule = config('verify.path');
|
|
|
foreach ($data['info'] as &$v){
|
...
|
...
|
@@ -2216,6 +2215,7 @@ class User extends Api |
|
|
$v['thumbnail'] = $rule.$v1['thumbnail'];
|
|
|
$v['title'] = $v1['title'];
|
|
|
$v['vipprice'] = $v1['price']*0.75;
|
|
|
$v['url'] = $v1['url'];
|
|
|
}
|
|
|
if(!empty($v['video_id'])){
|
|
|
$v['video_id'] = unserialize($v['video_id']);
|
...
|
...
|
@@ -2223,12 +2223,15 @@ class User extends Api |
|
|
if($v['video_id']['attr'] == 1){
|
|
|
$v['video_id']['attr'] = '2K';
|
|
|
$v['video_id']['vipprice'] = $info['price']*0.75;
|
|
|
$v['video_id']['url'] = $info['two_url'];
|
|
|
}elseif ($v['video_id']['attr'] == 2){
|
|
|
$v['video_id']['attr'] = '4K';
|
|
|
$v['video_id']['four_vipprice'] = $info['four_price'] * 0.75;
|
|
|
$v['video_id']['url'] = $info['four_url'];
|
|
|
}else{
|
|
|
$v['video_id']['attr'] = '8K';
|
|
|
$v['video_id']['eight_vipprice'] =$info['eight_price'] * 0.75;
|
|
|
$v['video_id']['url'] = $info['eight_url'];
|
|
|
}
|
|
|
$v['video_id']['title'] = $info['title'];
|
|
|
$v['video_id']['thumbnail'] = $rule.$info['thumbnail'];
|
...
|
...
|
|