新增ca认证对接、新增银行卡、身份证验证、修正消息通知

This commit is contained in:
2023-03-16 15:32:36 +08:00
parent dcb2e801ce
commit 398bbf3a8c
15 changed files with 379 additions and 70 deletions
+42 -2
View File
@@ -14,12 +14,12 @@ use App\Services\UserDoctorService;
use App\Services\UserService;
use App\Utils\Http;
use App\Utils\Log;
use Extend\Ca\Ca;
use Extend\Prescription\Prescription;
use Extend\TencentIm\Account;
use Extend\TencentIm\Friend;
use Extend\TencentIm\Group;
use Extend\TencentIm\Message;
use Extend\TencentIm\MessageParams;
use Extend\TencentIm\Profile;
use Extend\VerifyDun\BankCard;
use Extend\VerifyDun\IdCard;
@@ -205,7 +205,7 @@ class UserController extends AbstractController
// }
//
// // 发送消息
// $ImService->sendTextMessage($user_doctor['user_id'],"491923510680424449","等待医生接诊",491937904055369728);
// $ImService->sendMessage($user_doctor['user_id'],"491923510680424449","等待医生接诊",491937904055369728);
//
// $data = array();
@@ -254,5 +254,45 @@ class UserController extends AbstractController
// $ImService = new ImService();
// $ImService->setUserProfile("491925054435950592");
// $Prescription = new Prescription();
// $token = $Prescription->getLogisticsFee();
// dump($token);
// $ImService = new ImService();
//
// // 发送消息
// $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);
$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);
}
}