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