|
|
@@ -351,7 +351,7 @@ class EnshrineService extends BaseService
|
|
|
// 验证是否正在供奉该佛像
|
|
|
$limitNum = ConfigService::make()->getConfigByCode('chaodu_limit');
|
|
|
if($limitNum) {
|
|
|
- $num = $this->model::where(['user_id'=> $userId,'type'=> 2,'mark'=> 1,'','status'=> 1])
|
|
|
+ $num = $this->model::where(['user_id'=> $userId,'type'=> 2,'mark'=> 1,'status'=> 1])
|
|
|
->count('id');
|
|
|
if($num >= $limitNum){
|
|
|
return message("最多只能同时超度{$limitNum}个牌位,请到期后再操作", false);
|