浏览代码

预约取消,候补转正,购买配套后,whatapp新模板

lizhen_gitee 5 月之前
父节点
当前提交
b83869ce2b

+ 6 - 6
application/admin/controller/Lessonorder.php

@@ -226,13 +226,13 @@ class Lessonorder extends Backend
                             'type' => 'text',
                             'text' => $lesson_info['name_en'],
                         ],
-                        [
+                        /*[
                             'type' => 'text',
                             'text' => $coach_name,
-                        ],
+                        ],*/
                         [
                             'type' => 'text',
-                            'text' => date('Y-m-d H:i',$slot_info['starttime']),
+                            'text' => date('D l Y',$slot['starttime']) .' at '.date('H:i a',$slot['starttime']),
                         ],
                     ];
                     $this->whatapp($user_info['whatsapp'],'class_cancelled','en_US',$parameters);
@@ -354,13 +354,13 @@ class Lessonorder extends Backend
                                 'type' => 'text',
                                 'text' => $order['name_en'],
                             ],
-                            [
+                            /*[
                                 'type' => 'text',
                                 'text' => $coach_name,
-                            ],
+                            ],*/
                             [
                                 'type' => 'text',
-                                'text' => date('Y-m-d H:i',$slot['starttime']),
+                                'text' => date('D l Y',$slot['starttime']) .' at '.date('H:i a',$slot['starttime']),
                             ],
                         ];
                         $this->whatapp($order['whatsapp'],'lessonorder_alternate_to_booking','en_US',$parameters);

+ 3 - 3
application/api/controller/Usercenter.php

@@ -514,13 +514,13 @@ class Usercenter extends Api
                                 'type' => 'text',
                                 'text' => $order['name_en'],
                             ],
-                            [
+                            /*[
                                 'type' => 'text',
                                 'text' => $coach_name,
-                            ],
+                            ],*/
                             [
                                 'type' => 'text',
-                                'text' => date('Y-m-d H:i',$slot['starttime']),
+                                'text' => date('D l Y',$slot['starttime']) .' at '.date('H:i a',$slot['starttime']),
                             ],
                         ];
                         $this->whatapp($order['whatsapp'],'lessonorder_alternate_to_booking','en_US',$parameters);

+ 5 - 5
application/index/controller/Plantask.php

@@ -179,13 +179,13 @@ class Plantask extends Controller
                             'type' => 'text',
                             'text' => $order['name_en'],
                         ],
-                        [
+                       /* [
                             'type' => 'text',
                             'text' => $coach_name,
-                        ],
+                        ],*/
                         [
                             'type' => 'text',
-                            'text' => date('Y-m-d H:i',$slot['starttime']),
+                            'text' => date('D l Y',$slot['starttime']) .' at '.date('H:i a',$slot['starttime']),
                         ],
                     ];
                     $this->whatapp($order['whatsapp'],'class_cancelled','en_US',$parameters);
@@ -253,7 +253,7 @@ class Plantask extends Controller
                         'type' => 'text',
                         'text' => $order['name_en'],
                     ],
-                    [
+                    /*[
                         'type' => 'text',
                         'text' => date('Y-m-d H:i',$order['starttime']),
                     ],
@@ -264,7 +264,7 @@ class Plantask extends Controller
                     [
                         'type' => 'text',
                         'text' => $order['firstname'].' '.$order['lastname'],
-                    ],
+                    ],*/
                 ];
                 $this->whatapp($order['whatsapp'],'buy_new_package','en_US',$parameters);