rkljw 2 päivää sitten
vanhempi
sitoutus
6c0dd32eb0
1 muutettua tiedostoa jossa 27 lisäystä ja 10 poistoa
  1. 27 10
      app/JsonRpc/NewsService.php

+ 27 - 10
app/JsonRpc/NewsService.php

@@ -3875,7 +3875,7 @@ class NewsService implements NewsServiceInterface
     if((isset($data['status']) && $data['status']==1) || !isset($data['status'])){
       $this->sendMessage([
         'talk_type'=>600,
-        'title'=>$data['title'],
+        'title'=>$data['name'],
         'content'=>'提交了审核',
         'messageType'=>11,
       ]);
@@ -3918,7 +3918,7 @@ class NewsService implements NewsServiceInterface
     if((isset($data['status']) && $data['status']==1) || !isset($data['status'])){
       $this->sendMessage([
         'talk_type'=>600,
-        'title'=>$data['title'],
+        'title'=>$data['name'],
         'content'=>'提交了审核',
         'messageType'=>11,
       ]);
@@ -4412,7 +4412,7 @@ class NewsService implements NewsServiceInterface
     $jogHuntingInfo = JobHunting::where('id', $data['id'])->first();
     if($data['status']==2){
       $this->sendMessage([
-        'talk_type'=>600,
+        'talk_type'=>601,
         'title'=>$jogHuntingInfo['name'],
         'content'=>'审核通过',
         'messageType'=>11,
@@ -4421,13 +4421,21 @@ class NewsService implements NewsServiceInterface
     }
     if($data['status']==3){
       $this->sendMessage([
-        'talk_type'=>600,
+        'talk_type'=>601,
         'title'=>$jogHuntingInfo['name'],
         'content'=>'审核拒绝',
         'messageType'=>11,
         'user_id'=>$jogHuntingInfo['user_id'],
       ]);
     }
+    if($data['status']==1){
+      $this->sendMessage([
+        'talk_type'=>600,
+        'title'=>$jogHuntingInfo['name'],
+        'content'=>'提交了审核',
+        'messageType'=>11,
+      ]);
+    }
     $result = JobHunting::where('id', $data['id'])->update($data);
     return Result::success($result);
   }
@@ -5190,7 +5198,7 @@ class NewsService implements NewsServiceInterface
 	  
     if($data['status']==1){
       $this->sendMessage([
-        'talk_type'=>500,
+        'talk_type'=>501,
         'title'=>$job['title'],
         'content'=>'审核通过',
         'messageType'=>10,
@@ -5199,7 +5207,7 @@ class NewsService implements NewsServiceInterface
     }
     if($data['status']==2){
       $this->sendMessage([
-        'talk_type'=>500,
+        'talk_type'=>501,
         'title'=>$job['title'],
         'content'=>'审核拒绝',
         'messageType'=>10,
@@ -5586,24 +5594,33 @@ class NewsService implements NewsServiceInterface
     unset($data['user_id']);
     $bookInfo = Book::where("id", $data["id"])->first();
     var_dump($bookInfo,'----');
-    if($bookInfo['status']==2){
+    if($data['status']==2){
       $this->sendMessage([
-        'talk_type'=>400,
+        'talk_type'=>401,
         'title'=>$bookInfo['title'],
         'content'=>'审核通过',
         'messageType'=>7,
         'user_id'=>$bookInfo['user_id'],
       ]);
     }
-    if($bookInfo['status']==3){
+    if($data['status']==3){
       $this->sendMessage([
-        'talk_type'=>400,
+        'talk_type'=>401,
         'title'=>$bookInfo['title'],
         'content'=>'审核拒绝',
         'messageType'=>7,
         'user_id'=>$bookInfo['user_id'],
       ]);
     }
+    if($data['status']==1){
+      $this->sendMessage([
+        'talk_type'=>400,
+        'title'=>$bookInfo['title'],
+        'content'=>'提交了审核',
+        'messageType'=>7,
+        // 'user_id'=>$bookInfo['user_id'],
+      ]);
+    }
     $result = Book::where("id", $data["id"])->update($data);
     if (empty($result)) {
       return Result::error("更新失败", 0);