|
@@ -294,7 +294,7 @@ class Lessonslot extends Backend
|
|
|
'text' => date('Y-m-d H:i',$info['starttime']),
|
|
|
],
|
|
|
];
|
|
|
- $this->whatapp($userinfo['whatsapp'],'lessonorder_alternate_to_booking','en_US',$parameters);
|
|
|
+ //$this->whatapp($userinfo['whatsapp'],'lessonorder_alternate_to_booking','en_US',$parameters);
|
|
|
|
|
|
} catch (Exception $e) {
|
|
|
|
|
@@ -614,9 +614,12 @@ class Lessonslot extends Backend
|
|
|
$id = input('id',0);
|
|
|
|
|
|
$field = ['starttime','hours','num_min','num_max','waitnum_max','coach_ids','lesson_id','danceroom_id','address','remark','address_en','remark_en','is_show'];
|
|
|
- $require = ['starttime','hours','num_min','num_max','waitnum_max','coach_ids','lesson_id','danceroom_id','is_show'];
|
|
|
- $data = request_post_hub($field,$require);
|
|
|
+ /*$require = ['starttime','hours','num_min','num_max','waitnum_max','coach_ids','lesson_id','danceroom_id','is_show'];*/
|
|
|
+ $data = request_post_hub($field/*,$require*/);
|
|
|
|
|
|
+ if(empty($data['starttime'])){
|
|
|
+ $data['starttime'] = time();
|
|
|
+ }
|
|
|
$data['endtime'] = $data['starttime'] + ($data['hours'] * 3600);
|
|
|
|
|
|
Db::name('lesson_slot')->where('id',$id)->update($data);
|