...
|
...
|
@@ -566,16 +566,18 @@ class Course extends Api |
|
|
//小程序通知
|
|
|
$data = [
|
|
|
'touser' => $k['user']['openid'],
|
|
|
'template_id' => config('weChat.course_sign_tmp'),
|
|
|
'form_id'=>$k['id'],
|
|
|
'page'=>'pages/classReserve/classReserve',
|
|
|
'data'=>[
|
|
|
"thing2" => ["value" => $courseStore['course']['name']],
|
|
|
"thing4" => ["value" => $courseStore['store']['address']],
|
|
|
"date1" => ["value" => $k['CourseStore']['start']],
|
|
|
"name3" => ["value" => $k['user']['nickname']],
|
|
|
"thing5" => ["value" => "课程预约成功"],
|
|
|
],
|
|
|
'weapp_template_msg'=>[
|
|
|
'template_id' => config('weChat.course_sign_tmp'),
|
|
|
'form_id'=>$k['id'],
|
|
|
'page'=>'pages/classReserve/classReserve',
|
|
|
'data'=>[
|
|
|
"thing2" => ["value" => $courseStore['course']['name']],
|
|
|
"thing4" => ["value" => $courseStore['store']['address']],
|
|
|
"date1" => ["value" => $k['CourseStore']['start']],
|
|
|
"name3" => ["value" => $k['user']['nickname']],
|
|
|
"thing5" => ["value" => "课程预约成功"],
|
|
|
],
|
|
|
]
|
|
|
];
|
|
|
|
|
|
echo '微信请求:'.json_encode($data);
|
...
|
...
|
|