|
@@ -128,7 +128,6 @@ class MusicPlayedService extends BaseService
|
|
|
|
|
|
|
|
$info = $this->model::where(['user_id'=> $userId, 'source_id'=> $id])->select(['id','status'])->first();
|
|
$info = $this->model::where(['user_id'=> $userId, 'source_id'=> $id])->select(['id','status'])->first();
|
|
|
|
|
|
|
|
-
|
|
|
|
|
$count = $this->model::where(['user_id'=> $userId, 'status'=> 1])
|
|
$count = $this->model::where(['user_id'=> $userId, 'status'=> 1])
|
|
|
->where('create_time','<=',time() - 7 * 86400)
|
|
->where('create_time','<=',time() - 7 * 86400)
|
|
|
->count('id');
|
|
->count('id');
|
|
@@ -141,6 +140,9 @@ class MusicPlayedService extends BaseService
|
|
|
->update(['status'=> 3,'update_time'=>time()]);
|
|
->update(['status'=> 3,'update_time'=>time()]);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // 完成修行项目
|
|
|
|
|
+ PracticesService::make()->saveLog($userId, 6, '佛音');
|
|
|
|
|
+
|
|
|
// 处理
|
|
// 处理
|
|
|
if($info){
|
|
if($info){
|
|
|
$info->status = $status;
|
|
$info->status = $status;
|