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

修改接口

... ... @@ -2171,8 +2171,9 @@ class User extends Api
foreach ($data['info'] as &$v){
if(!empty($v['pic_id'])){
$v1 = Db::name('pic')->field('id,title,thumbnail,url,code,price,number')->where('id',$v['pic_id'])->find();
$v1['thumbnail'] = $rule.$v1['thumbnail'];
$v1['vipprice'] = $v1['price']*0.75;
$v['thumbnail'] = $rule.$v1['thumbnail'];
$v['title'] = $v1['title'];
$v['vipprice'] = $v1['price']*0.75;
}
if(!empty($v['video_id'])){
$v['video_id'] = unserialize($v['video_id']);
... ...