作者 郭盛
1 个管道 的构建 通过 耗费 12 秒

修改全部订单

... ... @@ -65,10 +65,6 @@ class OrderDetail extends Backend
->limit($offset, $limit)
->select();
foreach ($list as $row) {
}
$list = collection($list)->toArray();
$type = new \app\admin\model\Pic();
$video = new \app\admin\model\Video();
... ...
... ... @@ -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'];
... ...