|
@@ -622,12 +622,12 @@ if (!function_exists('send_wechat_message_to_docter')) {
|
|
if (!function_exists('send_wechatSubscription_message')) {
|
|
if (!function_exists('send_wechatSubscription_message')) {
|
|
function send_wechatSubscription_message($type, $arr,$message='docter_wechat_small_program')
|
|
function send_wechatSubscription_message($type, $arr,$message='docter_wechat_small_program')
|
|
{
|
|
{
|
|
- order_trace(['公共方法-模板消息进入数据类型' =>$type , '请求参数' => $arr ?? '', '模板标识' => $message ?? ''], 'lyh_info');
|
|
|
|
|
|
+ order_trace(['公共方法-模板消息进入数据类型' =>$type , '请求参数' => $arr ?? '', '模板标识' => $message ?? ''], 'info');
|
|
|
|
|
|
try {
|
|
try {
|
|
$app = Factory::miniProgram(config('config.'.$message));
|
|
$app = Factory::miniProgram(config('config.'.$message));
|
|
$data = config('config.wechatSubscription_template')[$type];
|
|
$data = config('config.wechatSubscription_template')[$type];
|
|
- order_trace(['公共方法-模板消息进入数据类型' =>$type , '请求参数' => $arr ?? '', '模板' => $data ?? ''], 'lyh_info');
|
|
|
|
|
|
+ order_trace(['公共方法-模板消息进入数据类型' =>$type , '请求参数' => $arr ?? '', '模板' => $data ?? ''], 'info');
|
|
|
|
|
|
$json = json_encode($data, JSON_UNESCAPED_UNICODE);
|
|
$json = json_encode($data, JSON_UNESCAPED_UNICODE);
|
|
$json = vsprintf($json, $arr);
|
|
$json = vsprintf($json, $arr);
|