|
@@ -2207,7 +2207,6 @@ class User extends Api |
|
@@ -2207,7 +2207,6 @@ class User extends Api |
2207
|
$user = Db::name('user')->where('id',$user_id)->field('id,is_vip')->find();
|
2207
|
$user = Db::name('user')->where('id',$user_id)->field('id,is_vip')->find();
|
2208
|
$data['info'] = Db::name('iphone')
|
2208
|
$data['info'] = Db::name('iphone')
|
2209
|
->where('user_id',$user_id)
|
2209
|
->where('user_id',$user_id)
|
2210
|
- ->where('status',2)
|
|
|
2211
|
->select();
|
2210
|
->select();
|
2212
|
$rule = config('verify.path');
|
2211
|
$rule = config('verify.path');
|
2213
|
foreach ($data['info'] as &$v){
|
2212
|
foreach ($data['info'] as &$v){
|
|
@@ -2216,6 +2215,7 @@ class User extends Api |
|
@@ -2216,6 +2215,7 @@ class User extends Api |
2216
|
$v['thumbnail'] = $rule.$v1['thumbnail'];
|
2215
|
$v['thumbnail'] = $rule.$v1['thumbnail'];
|
2217
|
$v['title'] = $v1['title'];
|
2216
|
$v['title'] = $v1['title'];
|
2218
|
$v['vipprice'] = $v1['price']*0.75;
|
2217
|
$v['vipprice'] = $v1['price']*0.75;
|
|
|
2218
|
+ $v['url'] = $v1['url'];
|
2219
|
}
|
2219
|
}
|
2220
|
if(!empty($v['video_id'])){
|
2220
|
if(!empty($v['video_id'])){
|
2221
|
$v['video_id'] = unserialize($v['video_id']);
|
2221
|
$v['video_id'] = unserialize($v['video_id']);
|
|
@@ -2223,12 +2223,15 @@ class User extends Api |
|
@@ -2223,12 +2223,15 @@ class User extends Api |
2223
|
if($v['video_id']['attr'] == 1){
|
2223
|
if($v['video_id']['attr'] == 1){
|
2224
|
$v['video_id']['attr'] = '2K';
|
2224
|
$v['video_id']['attr'] = '2K';
|
2225
|
$v['video_id']['vipprice'] = $info['price']*0.75;
|
2225
|
$v['video_id']['vipprice'] = $info['price']*0.75;
|
|
|
2226
|
+ $v['video_id']['url'] = $info['two_url'];
|
2226
|
}elseif ($v['video_id']['attr'] == 2){
|
2227
|
}elseif ($v['video_id']['attr'] == 2){
|
2227
|
$v['video_id']['attr'] = '4K';
|
2228
|
$v['video_id']['attr'] = '4K';
|
2228
|
$v['video_id']['four_vipprice'] = $info['four_price'] * 0.75;
|
2229
|
$v['video_id']['four_vipprice'] = $info['four_price'] * 0.75;
|
|
|
2230
|
+ $v['video_id']['url'] = $info['four_url'];
|
2229
|
}else{
|
2231
|
}else{
|
2230
|
$v['video_id']['attr'] = '8K';
|
2232
|
$v['video_id']['attr'] = '8K';
|
2231
|
$v['video_id']['eight_vipprice'] =$info['eight_price'] * 0.75;
|
2233
|
$v['video_id']['eight_vipprice'] =$info['eight_price'] * 0.75;
|
|
|
2234
|
+ $v['video_id']['url'] = $info['eight_url'];
|
2232
|
}
|
2235
|
}
|
2233
|
$v['video_id']['title'] = $info['title'];
|
2236
|
$v['video_id']['title'] = $info['title'];
|
2234
|
$v['video_id']['thumbnail'] = $rule.$info['thumbnail'];
|
2237
|
$v['video_id']['thumbnail'] = $rule.$info['thumbnail'];
|