...
|
...
|
@@ -1833,7 +1833,7 @@ class User extends Api |
|
|
->where('video_id',$video_s)
|
|
|
->find();
|
|
|
if(!empty($res)){
|
|
|
$this->error(['code'=>2,'msg'=>'该属性的视频已经购买过了']);
|
|
|
$this->error('该属性的视频已经购买过了');
|
|
|
}
|
|
|
$param['video_id'] = serialize($video);
|
|
|
}else{
|
...
|
...
|
@@ -1845,7 +1845,7 @@ class User extends Api |
|
|
foreach ($arr as &$v){
|
|
|
if(!empty($v['pic_id'])){
|
|
|
if($v['pic_id'] == $pic_id){
|
|
|
$this->error(['code'=>2,'msg'=>'该图片已经购买过了','pic_id'=>$pic_id]);
|
|
|
$this->error('该图片已经购买过了');
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
|