|
@@ -2495,6 +2495,16 @@ class NewsService implements NewsServiceInterface
|
|
|
if (isset($data['deal']) && ($data['deal'] == 1 || $data['deal'] == 4)) {
|
|
|
$data['real_deal_user'] = $user_id;
|
|
|
}
|
|
|
+ //如果是deal 23,则判断是不是处理人
|
|
|
+ if (isset($data['deal']) && ($data['deal'] == 2 || $data['deal'] == 3) && $type_id != 10000) {
|
|
|
+ $complaintInof = Complaint::where('id', $data['id'])
|
|
|
+ ->where('real_deal_user', $user_id)
|
|
|
+ ->first();
|
|
|
+ if (empty($complaintInof)) {
|
|
|
+ return Result::error("处理人错误", 0);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$result = complaint::where('id', $data['id'])->update($data);
|
|
|
return Result::success($result);
|
|
|
}
|