@@ -10,4 +10,5 @@ class Errors
public const PARAM_ERROR= [500004, '参数错误'];
public const NO_OPERATE_PERMISSION= [500003, '用户无操作权限'];
public const VIDEO_NOT_EXISTS= [500004, '视频不存在'];
+ public const MINIPROGRAM_STATUS_ERROR= [500005, '小程序未启用'];
}
@@ -35,7 +35,7 @@ class UserMiniprogramController extends CatchController
$miniprogram_info = $this->miniprogram->find($miniprogram_id);
if(!$miniprogram_info || $miniprogram_info->status == 0){
- ChannelBusinessException::throwError(Errors::PARAM_ERROR);
+ ChannelBusinessException::throwError(Errors::MINIPROGRAM_STATUS_ERROR);
collect(explode(',',$uids))->filter(function (int $value, int $key) use($miniprogram_id,$action){