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

修改接口

@@ -1833,7 +1833,7 @@ class User extends Api @@ -1833,7 +1833,7 @@ class User extends Api
1833 ->where('video_id',$video_s) 1833 ->where('video_id',$video_s)
1834 ->find(); 1834 ->find();
1835 if(!empty($res)){ 1835 if(!empty($res)){
1836 - $this->error('error',['code'=>2]); 1836 + $this->error('该属性视频您已经买过了',['code'=>2]);
1837 } 1837 }
1838 $param['video_id'] = serialize($video); 1838 $param['video_id'] = serialize($video);
1839 }else{ 1839 }else{
@@ -1845,7 +1845,7 @@ class User extends Api @@ -1845,7 +1845,7 @@ class User extends Api
1845 foreach ($arr as &$v){ 1845 foreach ($arr as &$v){
1846 if(!empty($v['pic_id'])){ 1846 if(!empty($v['pic_id'])){
1847 if($v['pic_id'] == $pic_id){ 1847 if($v['pic_id'] == $pic_id){
1848 - $this->error('error',['code'=>2]); 1848 + $this->error('您已经买过了',['code'=>2]);
1849 } 1849 }
1850 } 1850 }
1851 } 1851 }