...
|
...
|
@@ -51,8 +51,10 @@ class Events |
|
|
'mch_key' => 'MmXiXHO16b89tNx75t3T8rHTYMQBbn19',
|
|
|
//'notify_url' => '127.0.0.1/wake/public/api/order/notify',
|
|
|
'notify_url' => 'https://wake.w.brotop.cn/api/order/notify',
|
|
|
'course_sign_tmp' => '0A7sPV2VrDo7_3Fo5q9z-Ddh-m85_GvF15ANspbo70Ey',
|
|
|
'course_start_tmp' => '0A7sPV2VrDo7_3Fo5q9z-Ddh-m85_GvF15ANspbo70Ey',
|
|
|
//'course_sign_tmp' => '0A7sPV2VrDo7_3Fo5q9z-Ddh-m85_GvF15ANspbo70Ey',
|
|
|
'course_sign_tmp' => 'Y24N0zGcKj2tEFOh1elMoy5j5ppRK8MSGGINyaX5gYc',
|
|
|
//'course_start_tmp' => '0A7sPV2VrDo7_3Fo5q9z-Ddh-m85_GvF15ANspbo70Ey',
|
|
|
'course_start_tmp' => 'Y24N0zGcKj2tEFOh1elMoy5j5ppRK8MSGGINyaX5gYc',
|
|
|
'order_over_tmp' => '586FN0OLJ1DPZgwPwh7Ke2P4wewhm7l67awB77qrOi8',
|
|
|
];
|
|
|
|
...
|
...
|
@@ -111,7 +113,7 @@ class Events |
|
|
}
|
|
|
|
|
|
$courseStore = new \app\admin\model\CourseStore();
|
|
|
$courseStore = $courseStore->where(['notify'=>false,'status'=>'confirmed','start' => ['<',date('Y-m-d H:i:s',time()+$time)] ])->select();
|
|
|
$courseStore = $courseStore->with(['store','course'])->where(['notify'=>false,'status'=>'confirmed','start' => ['<',date('Y-m-d H:i:s',time()+$time)] ])->select();
|
|
|
$notice = new \app\admin\model\UserNotice();
|
|
|
foreach ($courseStore as $k){
|
|
|
$courseStore = new \app\admin\model\CourseStore();
|
...
|
...
|
@@ -135,10 +137,11 @@ class Events |
|
|
'form_id'=> $v['id'],
|
|
|
'page'=>'pages/classReserve/classReserve',
|
|
|
'data'=>[
|
|
|
"thing1" => ["value" => $courseStore['course']['name']],
|
|
|
"date2" => ["value" => $v['CourseStore']['start']],
|
|
|
"thing2" => ["value" => $k['course']['name']],
|
|
|
"thing4" => ["value" => $k['store']['address']],
|
|
|
"date1" => ["value" => $v['CourseStore']['start']],
|
|
|
"name3" => ["value" => $v['user']['nickname']],
|
|
|
"thing4" => ["value" => "课程即将开始"],
|
|
|
"thing5" => ["value" => "课程即将开始"],
|
|
|
],
|
|
|
];
|
|
|
|
...
|
...
|
|