diff --git a/app/Controller/UserController.php b/app/Controller/UserController.php index 86aac2c..2504de6 100644 --- a/app/Controller/UserController.php +++ b/app/Controller/UserController.php @@ -264,35 +264,35 @@ class UserController extends AbstractController // // 发送消息 // $ImService->sendMessage("491925054435950592","492404831991414785","等待医生接诊","494837308861095936",1); -// $Ca = new Ca(); -// $data = array(); -// $data['user_id'] = "123456"; -// $data['card_num'] = "372929199610075412"; -// -// $result = $Ca->getCloudCert($data); -// dump($result); + $Ca = new Ca(); + $data = array(); + $data['user_id'] = "123456"; + $data['card_num'] = "372929199610075412"; + + $result = $Ca->getCloudCert($data); + dump($result); - $ImService = new ImService(); +// $ImService = new ImService(); // 发送消息 // 自定义消息 - $cloud_custom_data = array(); - $cloud_custom_data['order_inquiry_id'] = "494837308861095936"; - $cloud_custom_data['is_system'] = 1; - $cloud_custom_data['inquiry_type'] = 1; - - // 消息内容 - $message_content_data = array(); - $message_content_data['message_type'] = 2; - $message_content_data['content'] = "--问诊结束--"; - $message_content_data['desc'] = "温馨提示:您可继续补充问诊内容,便于更快确认病情,医生均在临床一线工作,还请耐心等待,医生接诊会第一时间短信通知您。"; - $message_content = [ - 'Data' => json_encode($message_content_data,JSON_UNESCAPED_UNICODE), - ]; - - $ImService->sendMessage("491925054435950592", "492404831991414785", $message_content, "TIMCustomElem", $cloud_custom_data); +// $cloud_custom_data = array(); +// $cloud_custom_data['order_inquiry_id'] = "494837308861095936"; +// $cloud_custom_data['is_system'] = 1; +// $cloud_custom_data['inquiry_type'] = 1; +// +// // 消息内容 +// $message_content_data = array(); +// $message_content_data['message_type'] = 2; +// $message_content_data['content'] = "--问诊结束--"; +// $message_content_data['desc'] = "温馨提示:您可继续补充问诊内容,便于更快确认病情,医生均在临床一线工作,还请耐心等待,医生接诊会第一时间短信通知您。"; +// $message_content = [ +// 'Data' => json_encode($message_content_data,JSON_UNESCAPED_UNICODE), +// ]; +// +// $ImService->sendMessage("491925054435950592", "492404831991414785", $message_content, "TIMCustomElem", $cloud_custom_data); } } \ No newline at end of file diff --git a/config/config.php b/config/config.php index 47f2b81..39c300c 100644 --- a/config/config.php +++ b/config/config.php @@ -66,8 +66,8 @@ return [ ], ], 'verify_dun' =>[ // 网易易盾 - "secretId" => "45a8fd254b4649e9bd25d773ac7ab666", - "secretKey" => "3cb726bd85104161b25613153c4fba7c", + "secretId" => "0bcf9a5633eb9ca9d196583e67c3762b", + "secretKey" => "b31e8220d115b6531a22ee71d1e89936", "busunessId" => "", ], 'im' =>[ // 腾讯im diff --git a/extend/VerifyDun/IdCard.php b/extend/VerifyDun/IdCard.php index 6fc682e..9d4580f 100644 --- a/extend/VerifyDun/IdCard.php +++ b/extend/VerifyDun/IdCard.php @@ -35,7 +35,6 @@ class IdCard extends Base $this->options["form_params"] = $this->params; $result = $this->httpRuest->postRequest($api_url,$this->options); - if (empty($result)){ return "身份证认证失败"; }