1
This commit is contained in:
parent
f9cae938dd
commit
9c2f3d6a20
@ -193,6 +193,7 @@ class AssignDoctorConsumer extends ConsumerMessage
|
|||||||
// 发送消息
|
// 发送消息
|
||||||
$ImService->sendTextMessage($user_doctor['user_id'],$order_inquiry['user_id'],"等待医生接诊",$order_inquiry['order_inquiry_id']);
|
$ImService->sendTextMessage($user_doctor['user_id'],$order_inquiry['user_id'],"等待医生接诊",$order_inquiry['order_inquiry_id']);
|
||||||
|
|
||||||
|
Log::getInstance()->info("分配医生成功,发送系统问诊消息成功");
|
||||||
}catch (\Exception $e) {
|
}catch (\Exception $e) {
|
||||||
// 验证失败
|
// 验证失败
|
||||||
Log::getInstance()->error("分配医生成功,发送系统问诊消息失败:" . $e->getMessage());
|
Log::getInstance()->error("分配医生成功,发送系统问诊消息失败:" . $e->getMessage());
|
||||||
|
|||||||
@ -147,6 +147,8 @@ class CallBackController extends AbstractController
|
|||||||
|
|
||||||
// 发送消息
|
// 发送消息
|
||||||
$ImService->sendTextMessage($user_doctor['user_id'],$order_inquiry['user_id'],"等待医生接诊",$order_inquiry['order_inquiry_id']);
|
$ImService->sendTextMessage($user_doctor['user_id'],$order_inquiry['user_id'],"等待医生接诊",$order_inquiry['order_inquiry_id']);
|
||||||
|
|
||||||
|
Log::getInstance()->info("微信支付回调数据处理成功,发送系统问诊消息成功");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}catch (\Exception $e) {
|
}catch (\Exception $e) {
|
||||||
|
|||||||
@ -88,18 +88,18 @@ class UserController extends AbstractController
|
|||||||
$out_trade_no = $this->request->input('out_trade_no');
|
$out_trade_no = $this->request->input('out_trade_no');
|
||||||
// $generator = $this->container->get(IdGeneratorInterface::class);
|
// $generator = $this->container->get(IdGeneratorInterface::class);
|
||||||
//
|
//
|
||||||
// $WechatPay = new WechatPay(1);
|
$WechatPay = new WechatPay(1);
|
||||||
////
|
|
||||||
// // 获取预支付交易会话标识
|
|
||||||
// $total = 0.01 * 100;
|
|
||||||
// $prepay = $WechatPay->getJsapiPrepayId($out_trade_no,$total,"omgU35DlE-rxTAGgcBjOuc4xdcX8");
|
|
||||||
// if (empty($prepay)){
|
|
||||||
// return fail(HttpEnumCode::SERVER_ERROR, "订单创建失败");
|
|
||||||
// }
|
|
||||||
//
|
//
|
||||||
// // 获取小程序支付配置
|
// 获取预支付交易会话标识
|
||||||
// $pay_config = $WechatPay->getAppletsPayConfig($prepay['prepay_id']);
|
$total = 0.01 * 100;
|
||||||
// return $this->response->json($pay_config);
|
$prepay = $WechatPay->getJsapiPrepayId($out_trade_no,$total,"omgU35DlE-rxTAGgcBjOuc4xdcX8");
|
||||||
|
if (empty($prepay)){
|
||||||
|
return fail(HttpEnumCode::SERVER_ERROR, "订单创建失败");
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取小程序支付配置
|
||||||
|
$pay_config = $WechatPay->getAppletsPayConfig($prepay['prepay_id']);
|
||||||
|
return $this->response->json($pay_config);
|
||||||
|
|
||||||
// 发起退款
|
// 发起退款
|
||||||
// $WechatPay = new WechatPay(1);
|
// $WechatPay = new WechatPay(1);
|
||||||
@ -180,18 +180,18 @@ class UserController extends AbstractController
|
|||||||
|
|
||||||
|
|
||||||
// 专家-公益,发送im消息
|
// 专家-公益,发送im消息
|
||||||
$ImService = new ImService();
|
// $ImService = new ImService();
|
||||||
|
//
|
||||||
// 获取订单医生数据
|
// // 获取订单医生数据
|
||||||
$params = array();
|
// $params = array();
|
||||||
$params['doctor_id'] = "491925054779883520";
|
// $params['doctor_id'] = "491925054779883520";
|
||||||
$user_doctor = UserDoctor::getOne($params);
|
// $user_doctor = UserDoctor::getOne($params);
|
||||||
if (empty($user_doctor)){
|
// if (empty($user_doctor)){
|
||||||
Log::getInstance()->info("医生数据错误");
|
// Log::getInstance()->info("医生数据错误");
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
// 发送消息
|
// // 发送消息
|
||||||
$ImService->sendTextMessage($user_doctor['user_id'],"491923510680424449","等待医生接诊",491937904055369728);
|
// $ImService->sendTextMessage($user_doctor['user_id'],"491923510680424449","等待医生接诊",491937904055369728);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -192,6 +192,7 @@ class ImService extends BaseService
|
|||||||
$arg['From_Account'] = $from_user_id; // 发送方user_id 如系统发送,无需填写
|
$arg['From_Account'] = $from_user_id; // 发送方user_id 如系统发送,无需填写
|
||||||
}
|
}
|
||||||
$arg['To_Account'] = $to_user_id; // 接收方user_id
|
$arg['To_Account'] = $to_user_id; // 接收方user_id
|
||||||
|
$arg['ForbidCallbackControl'] = ['ForbidBeforeSendMsgCallback'];
|
||||||
$arg['SendMsgControl'] = ['NoUnread'];
|
$arg['SendMsgControl'] = ['NoUnread'];
|
||||||
|
|
||||||
$arg['MsgBody'] = [
|
$arg['MsgBody'] = [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user