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

修改接口

... ... @@ -380,7 +380,7 @@ class Index extends Api
foreach ($data as &$v){
$user_info = Db::name('user')->where('id',$v['user_id'])->find();
if($v['user_id'] == $user_id){
if($v['user_id'] == $uid){
$v['is_white'] = 1;
}else{
if(empty($user_info['whiteip_ids'])){
... ... @@ -439,7 +439,7 @@ class Index extends Api
foreach ($note as &$v){
$user_info = Db::name('user')->where('id',$v['user_id'])->find();
if($v['user_id'] == $user_id){
if($v['user_id'] == $uid){
$v['is_white'] = 1;
}else{
if(empty($user_info['whiteip_ids'])){
... ... @@ -459,7 +459,7 @@ class Index extends Api
$pic = $this->myfile(2,$where);
foreach ($pic as &$v){
$user_info = Db::name('user')->where('id',$v['user_id'])->find();
if($v['user_id'] == $user_id){
if($v['user_id'] == $uid){
$v['is_white'] = 1;
}else{
if(empty($user_info['whiteip_ids'])){
... ... @@ -478,7 +478,7 @@ class Index extends Api
$video = $this->myfile(3,$where);
foreach ($video as &$v){
$user_info = Db::name('user')->where('id',$v['user_id'])->find();
if($v['user_id'] == $user_id){
if($v['user_id'] == $uid){
$v['is_white'] = 1;
}else{
if(empty($user_info['whiteip_ids'])){
... ... @@ -499,7 +499,7 @@ class Index extends Api
$rotor = $this->zhuan(1,$tiao);
foreach ($rotor as &$v){
$user_info = Db::name('user')->where('id',$v['user_id'])->find();
if($v['user_id'] == $user_id){
if($v['user_id'] == $uid){
$v['is_white'] = 1;
}else{
if(empty($user_info['whiteip_ids'])){
... ... @@ -518,7 +518,7 @@ class Index extends Api
$rotor_pic = $this->zhuan(2,$tiao);
foreach ($rotor_pic as &$v){
$user_info = Db::name('user')->where('id',$v['user_id'])->find();
if($v['user_id'] == $user_id){
if($v['user_id'] == $uid){
$v['is_white'] = 1;
}else{
if(empty($user_info['whiteip_ids'])){
... ... @@ -537,7 +537,7 @@ class Index extends Api
$rotor_video = $this->zhuan(3,$tiao);
foreach ($rotor_video as &$v){
$user_info = Db::name('user')->where('id',$v['user_id'])->find();
if($v['user_id'] == $user_id){
if($v['user_id'] == $uid){
$v['is_white'] = 1;
}else{
if(empty($user_info['whiteip_ids'])){
... ...