浏览代码

no message

panghu 5 月之前
父节点
当前提交
51f960efae
共有 2 个文件被更改,包括 8 次插入 和 4 次删除
  1. 4 2
      app/Console/Commands/TestCommand.php
  2. 4 2
      app/Http/Controllers/AdminApi/NotifyController.php

+ 4 - 2
app/Console/Commands/TestCommand.php

@@ -88,11 +88,13 @@ class TestCommand extends Command
                 $sign_id = $sign->{'id'};
                 if (!empty($operator)){
                     $psnId = $operator['psnId'];
-                    SignRecord::where('sign_id',$sign_id)->where('authType','PSN')->where('id_no',$psnId)->update(['status'=>$signFlowStatus]);
+//                    SignRecord::where('sign_id',$sign_id)->where('authType','PSN')->where('id_no',$psnId)->update(['status'=>$signFlowStatus]);
+                    SignRecord::where('sign_id',$sign_id)->where('authType','PSN')->update(['status'=>$signFlowStatus]);
                 }
                 if (!empty($organization)){
                     $orgId = $organization['orgId'];
-                    SignRecord::where('sign_id',$sign_id)->where('authType','ORG')->where('id_no',$orgId)->update(['status'=>$signFlowStatus]);
+//                    SignRecord::where('sign_id',$sign_id)->where('authType','ORG')->where('id_no',$orgId)->update(['status'=>$signFlowStatus]);
+                    SignRecord::where('sign_id',$sign_id)->where('authType','ORG')->update(['status'=>$signFlowStatus]);
                 }
             }
         }

+ 4 - 2
app/Http/Controllers/AdminApi/NotifyController.php

@@ -86,11 +86,13 @@ class NotifyController extends ApiController
                 $sign_id = $sign->{'id'};
                 if (!empty($operator)){
                     $psnId = $operator['psnId'];
-                    SignRecord::where('sign_id',$sign_id)->where('authType','PSN')->where('id_no',$psnId)->update(['status'=>$signFlowStatus]);
+//                    SignRecord::where('sign_id',$sign_id)->where('authType','PSN')->where('id_no',$psnId)->update(['status'=>$signFlowStatus]);
+                    SignRecord::where('sign_id',$sign_id)->where('authType','PSN')->update(['status'=>$signFlowStatus]);
                 }
                 if (!empty($organization)){
                     $orgId = $organization['orgId'];
-                    SignRecord::where('sign_id',$sign_id)->where('authType','ORG')->where('id_no',$orgId)->update(['status'=>$signFlowStatus]);
+//                    SignRecord::where('sign_id',$sign_id)->where('authType','ORG')->where('id_no',$orgId)->update(['status'=>$signFlowStatus]);
+                    SignRecord::where('sign_id',$sign_id)->where('authType','ORG')->update(['status'=>$signFlowStatus]);
                 }
             }
         }elseif ($data['action']=='SEAL_AUTH_SIGN'){