...
|
...
|
@@ -167,6 +167,27 @@ if (!function_exists('getOrderSn')) { |
|
|
}
|
|
|
|
|
|
|
|
|
if(!function_exists('beingPushed')){
|
|
|
/**
|
|
|
* 发送模板消息
|
|
|
* @return void
|
|
|
* @throws \think\db\exception\DataNotFoundException
|
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
|
* @throws \think\exception\DbException
|
|
|
*/
|
|
|
function refundSendMessage($order_id){
|
|
|
$order=\think\Db::name("order")->find($order_id);
|
|
|
$wxxcxpush=new WxxcxPush();
|
|
|
$user=new User();
|
|
|
$user=$user->find($order['user_id']);
|
|
|
$res=$wxxcxpush->refundMessage($user['wx_xcx_openid'],$order_id);
|
|
|
if ($res !== false) {
|
|
|
return $res;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
if (!function_exists('beingPushed')) {
|
|
|
/**
|
|
|
* 小程序模板推送选择类型
|
...
|
...
|
@@ -239,16 +260,22 @@ if (!function_exists('beingPushed')) { |
|
|
break;
|
|
|
case 4:
|
|
|
//审核结果通知(老版本的一次性订阅)
|
|
|
$data['template_id'] = "yJRK0DZFuEPqaWwyS0DegT0r2p5be0bm2eE59oroGME";
|
|
|
$data['template_id'] = "qR9reAuv_Ulelyg1H2xbN-GoWGWFRhS0t4nhtvnFr5Q";
|
|
|
$data['data'] = [
|
|
|
"phrase2" => [
|
|
|
"character_string1" => [
|
|
|
'value' => $temp['value1'],//审核结果
|
|
|
],
|
|
|
"name1" => [
|
|
|
"date3" => [
|
|
|
'value' => $temp['value2'],//审核人
|
|
|
],
|
|
|
"date4" => [
|
|
|
"thing5" => [
|
|
|
'value' => $temp['value3'],//审批时间
|
|
|
],
|
|
|
"thing6" => [
|
|
|
'value' => $temp['value4'],//审批时间
|
|
|
],
|
|
|
"thing7" => [
|
|
|
'value' => $temp['value5'],//审批时间
|
|
|
]
|
|
|
];
|
|
|
break;
|
...
|
...
|
@@ -273,6 +300,27 @@ if (!function_exists('beingPushed')) { |
|
|
]
|
|
|
];
|
|
|
break;
|
|
|
case 6:
|
|
|
//预约结果通知
|
|
|
$data['template_id'] = "Dfvkyn3So2YE5aVJtkUTFWdjgzpo6VvWkNHZBOMb_n4";
|
|
|
$data['data'] = [
|
|
|
"character_string1" => [
|
|
|
'value' => $temp['value1'],//备注
|
|
|
],
|
|
|
"number2" => [
|
|
|
'value' =>$temp['value2'],//日期
|
|
|
],
|
|
|
"name3" => [
|
|
|
'value' => $temp['value3'],//就诊人
|
|
|
],
|
|
|
"date4" => [
|
|
|
'value' => $temp['value4'],//就诊人
|
|
|
],
|
|
|
"thing9" => [
|
|
|
'value' => $temp['value5'],//就诊人
|
|
|
]
|
|
|
];
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
return sendSubscribeMessage($data);
|
...
|
...
|
|