|
@@ -792,6 +792,14 @@ class NewsService implements NewsServiceInterface
|
|
'user_id' => $articleData['admin_user_id'],
|
|
'user_id' => $articleData['admin_user_id'],
|
|
]);
|
|
]);
|
|
}
|
|
}
|
|
|
|
+ if ($data['status'] == 0) {
|
|
|
|
+ $this->sendMessage([
|
|
|
|
+ 'talk_type' => 100,
|
|
|
|
+ 'title' => $articleData['title'],
|
|
|
|
+ 'content' => '提交了审核',
|
|
|
|
+ 'messageType' => 2,
|
|
|
|
+ ]);
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
$result = Article::where(['id' => $data['id']])->update($data);
|
|
$result = Article::where(['id' => $data['id']])->update($data);
|
|
@@ -4320,6 +4328,14 @@ class NewsService implements NewsServiceInterface
|
|
}
|
|
}
|
|
}
|
|
}
|
|
$complaintInfo = Complaint::where('id', $data['id'])->first();
|
|
$complaintInfo = Complaint::where('id', $data['id'])->first();
|
|
|
|
+ if ($data['status'] == 1) {
|
|
|
|
+ $this->sendMessage([
|
|
|
|
+ 'talk_type' => 800,
|
|
|
|
+ 'title' => $complaintInfo['title'],
|
|
|
|
+ 'content' => '提交了审核',
|
|
|
|
+ 'messageType' => 6,
|
|
|
|
+ ]);
|
|
|
|
+ }
|
|
if ($data['status'] == 2 && !isset($data['deal'])) {
|
|
if ($data['status'] == 2 && !isset($data['deal'])) {
|
|
$this->sendMessage([
|
|
$this->sendMessage([
|
|
'talk_type' => 801,
|
|
'talk_type' => 801,
|
|
@@ -4400,6 +4416,14 @@ class NewsService implements NewsServiceInterface
|
|
'user_id' => $goodInfo['user_id'],
|
|
'user_id' => $goodInfo['user_id'],
|
|
]);
|
|
]);
|
|
}
|
|
}
|
|
|
|
+ if ($data['status'] == 1) {
|
|
|
|
+ $this->sendMessage([
|
|
|
|
+ 'talk_type' => 200,
|
|
|
|
+ 'title' => $goodInfo['name'],
|
|
|
|
+ 'content' => '提交了审核',
|
|
|
|
+ 'messageType' => 3,
|
|
|
|
+ ]);
|
|
|
|
+ }
|
|
$result = Good::where('id', $data['id'])->update($data);
|
|
$result = Good::where('id', $data['id'])->update($data);
|
|
return Result::success($result);
|
|
return Result::success($result);
|
|
}
|
|
}
|
|
@@ -4533,6 +4557,14 @@ class NewsService implements NewsServiceInterface
|
|
'user_id' => $noticeInfo['user_id'],
|
|
'user_id' => $noticeInfo['user_id'],
|
|
]);
|
|
]);
|
|
}
|
|
}
|
|
|
|
+ if ($data['status'] == 1) {
|
|
|
|
+ $this->sendMessage([
|
|
|
|
+ 'talk_type' => 700,
|
|
|
|
+ 'title' => $noticeInfo['title'],
|
|
|
|
+ 'content' => '提交了审核',
|
|
|
|
+ 'messageType' => 3,
|
|
|
|
+ ]);
|
|
|
|
+ }
|
|
return Result::success($result);
|
|
return Result::success($result);
|
|
}
|
|
}
|
|
public function getDUser(array $data): array
|
|
public function getDUser(array $data): array
|
|
@@ -5214,7 +5246,14 @@ class NewsService implements NewsServiceInterface
|
|
'user_id'=>$job['user_id'],
|
|
'user_id'=>$job['user_id'],
|
|
]);
|
|
]);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ if($data['status']==0){
|
|
|
|
+ $this->sendMessage([
|
|
|
|
+ 'talk_type'=>500,
|
|
|
|
+ 'title'=>$job['title'],
|
|
|
|
+ 'content'=>'提交了审核',
|
|
|
|
+ 'messageType'=>10,
|
|
|
|
+ ]);
|
|
|
|
+ }
|
|
$result = JobRecruiting::where('id', $data['id'])->update($data);
|
|
$result = JobRecruiting::where('id', $data['id'])->update($data);
|
|
if (empty($result)) {
|
|
if (empty($result)) {
|
|
return Result::error("审核失败", 0);
|
|
return Result::error("审核失败", 0);
|
|
@@ -6276,14 +6315,22 @@ class NewsService implements NewsServiceInterface
|
|
]);
|
|
]);
|
|
$result = Company::where('id', $data['id'])->update(['status' => $data['status'], 'reject_reason' => $data['reason']]);
|
|
$result = Company::where('id', $data['id'])->update(['status' => $data['status'], 'reject_reason' => $data['reason']]);
|
|
} else {
|
|
} else {
|
|
- $this->sendMessage([
|
|
|
|
- 'talk_type'=>901,
|
|
|
|
- 'title'=>$company['title'],
|
|
|
|
- 'content'=>'审核通过',
|
|
|
|
- 'messageType'=>8,
|
|
|
|
- 'user_id'=>$company['user_id'],
|
|
|
|
- ]);
|
|
|
|
-
|
|
|
|
|
|
+ if($data['status'] == 1){
|
|
|
|
+ $this->sendMessage([
|
|
|
|
+ 'talk_type'=>901,
|
|
|
|
+ 'title'=>$company['title'],
|
|
|
|
+ 'content'=>'审核通过',
|
|
|
|
+ 'messageType'=>8,
|
|
|
|
+ 'user_id'=>$company['user_id'],
|
|
|
|
+ ]);
|
|
|
|
+ }else if($data['status'] == 0){
|
|
|
|
+ $this->sendMessage([
|
|
|
|
+ 'talk_type'=>900,
|
|
|
|
+ 'title'=>$company['title'],
|
|
|
|
+ 'content'=>'提交了审核',
|
|
|
|
+ 'messageType'=>8,
|
|
|
|
+ ]);
|
|
|
|
+ }
|
|
$result = Company::where('id', $data['id'])->update(['status' => $data['status']]);
|
|
$result = Company::where('id', $data['id'])->update(['status' => $data['status']]);
|
|
}
|
|
}
|
|
if (empty($result)) {
|
|
if (empty($result)) {
|
|
@@ -6695,13 +6742,22 @@ class NewsService implements NewsServiceInterface
|
|
]);
|
|
]);
|
|
$result = Project::where('id', $data['id'])->update(['status' => $data['status'], 'refuse_reason' => $data['refuse_reason']]);
|
|
$result = Project::where('id', $data['id'])->update(['status' => $data['status'], 'refuse_reason' => $data['refuse_reason']]);
|
|
} else {
|
|
} else {
|
|
- $this->sendMessage([
|
|
|
|
- 'talk_type'=>1001,
|
|
|
|
- 'title'=>$project['title'],
|
|
|
|
- 'content'=>'审核通过',
|
|
|
|
- 'messageType'=>9,
|
|
|
|
- 'user_id'=>$project['user_id'],
|
|
|
|
- ]);
|
|
|
|
|
|
+ if($data['status'] == 1){
|
|
|
|
+ $this->sendMessage([
|
|
|
|
+ 'talk_type'=>1001,
|
|
|
|
+ 'title'=>$project['title'],
|
|
|
|
+ 'content'=>'审核通过',
|
|
|
|
+ 'messageType'=>9,
|
|
|
|
+ 'user_id'=>$project['user_id'],
|
|
|
|
+ ]);
|
|
|
|
+ }else if($data['status'] == 0){
|
|
|
|
+ $this->sendMessage([
|
|
|
|
+ 'talk_type'=>1000,
|
|
|
|
+ 'title'=>$project['title'],
|
|
|
|
+ 'content'=>'提交了审核',
|
|
|
|
+ 'messageType'=>9,
|
|
|
|
+ ]);
|
|
|
|
+ }
|
|
$result = Project::where('id', $data['id'])->update(['status' => $data['status']]);
|
|
$result = Project::where('id', $data['id'])->update(['status' => $data['status']]);
|
|
}
|
|
}
|
|
|
|
|