info($content); $r = SmsServer::creatServer()->sendContent('18580599751',$content); dd($r); // $result = ESignContractServer::creatServer()->downloadFileUrl('2160ab8b01b4444384e48d4e72135584'); // dd($result); // [{"keyword":"甲方:重庆振合网商业管理有限公司(公章)","auth_type":"ORG","id_no":"f09ba6fd02ed416690800c539ec4488a"},{"keyword":"乙方(盖章):","auth_type":"PSN","id_no":"337834e20a344e8b83c5fe115d230578"}] $json = '{"action":"SIGN_MISSON_COMPLETE","timestamp":1776392658818,"signFlowId":"c512c5e8e0404611a4d990db18870f6d","signOrder":1,"operateTime":1776392658000,"signResult":2,"resultDescription":"签署完成","operator":{"psnId":"69b1cd62aa0f481bb6dc12d76c26afc1","psnAccount":{"accountMobile":"15923811472"}}}'; $data = json_decode($json,true); if ($data['action'] == 'SIGN_MISSON_COMPLETE'){ // file_put_contents('sign_misson_complete.txt', json_encode($data)); //合同签署 $signFlowStatus = $data['signResult']; $signFlowId = $data['signFlowId']; $organization = isset($data['organization']) ? $data['organization'] : ''; $operator = $data['operator']; if (!empty($signFlowId)){ $sign = SignContract::where('flow_id',$signFlowId)->first(); $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')->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')->update(['status'=>$signFlowStatus]); } } } dd(111); // $file_id = '0a1feb9ddf3f4da198ec0bb7d0c3225a'; // $file_status = ESignContractServer::creatServer()->getFileStatus($file_id); // dd($file_status); // $psnId= 'd1bca85014164a88b896159c799223f9'; // JobServer::creatServer()->createMemberSealJob($psnId); // //获取企业内部使用签章列表 //// ESignServer::creatServer()->internalAuthInfo(1,$psnId); //// ESignServer::creatServer()->psnsealListInfo(1,$psnId); //// ESignServer::creatServer()->createOrgsealsbyTemplate(1,$psnId); // dd(11111); // //查询是否有合同章 // $sealItem=MemberSeal::where('m_id',1)->first(); // if(empty($sealItem)){ // //无合同印章执行创建流程 // ESignServer::creatServer()->createOrgsealsbyTemplate(1,$psnId); // } // dd(11111); // JobServer::creatServer()->createMemberSealJob($psnId); // dd(111); // dd(11111); // $file_path = 'storage/contract/测试.docx'; $file_path = 'storage/contract/20250521/测试模板.docx'; $json = '{"name": "江雨","text":"测试一下","phone":"13012341234"}'; $file = WordServer::creatServer()->replaceWordText($file_path,'123.docx',$json); dd($file); // ESignContractServer::creatServer()->setContractContract(111,11); // dd(111); $content='尊敬的,您有待认证信息,点击认证 '; $r = SmsServer::creatServer()->sendContent('18323851679',$content); dd($r); $Res = ESignServer::creatServer()->personsidentityinfo(1,18323851679,'江雨',500221200002194310); dd($Res); } }