lizhen_gitee 1 year ago
parent
commit
3ab8309e85
3 changed files with 19 additions and 0 deletions
  1. 12 0
      application/api/controller/Demo.php
  2. 5 0
      application/config.php
  3. 2 0
      application/extra/site.php

+ 12 - 0
application/api/controller/Demo.php

@@ -211,5 +211,17 @@ class Demo extends Api
         return $error;
         return $error;
     }
     }
 
 
+    public function whatsapp(){
+        $account_id = '657a5348-b28f-4736-8c76-6c47f4b20e4e';
+        $daibi = '350448a7-e8bc-4310-8d5b-db3518a5d05e';
+        $url = 'https://gw.cmtelecom.com/v1.0/message';
+
+        $client = new \CMText\TextClient('your-api-key');
+
+        echo json_encode(
+            $client->SendMessage('Message_Text', 'CM.com', [ '15866999421' ], 'Your_Reference')
+        );
+    }
+
 
 
 }
 }

+ 5 - 0
application/config.php

@@ -336,4 +336,9 @@ return [
         'password' => 'ivme0u05',
         'password' => 'ivme0u05',
         'signname' => 'Elin Dance Studio',
         'signname' => 'Elin Dance Studio',
     ],
     ],
+
+
+    LTAI5tFsEa3eJ9ZGcQkVYALu
+    MzQfaZ2OafzoEVTBJze3glMqqjaZjA
+
 ];
 ];

+ 2 - 0
application/extra/site.php

@@ -60,4 +60,6 @@ return array (
   'index_bottom_image' => '/uploads/20231205/974dd1f257c84e07317cbc13f9d69872.png',
   'index_bottom_image' => '/uploads/20231205/974dd1f257c84e07317cbc13f9d69872.png',
   'public_store_address' => 'Link@896,896 Dunearn Road,Singapore',
   'public_store_address' => 'Link@896,896 Dunearn Road,Singapore',
   'trylesson_cancel_text' => 'For any cancellations less than 24hours before the session,your membership packgae will automatically be deducted in the syetem and for those who pay Per Session,your payment will not be refunded.',
   'trylesson_cancel_text' => 'For any cancellations less than 24hours before the session,your membership packgae will automatically be deducted in the syetem and for those who pay Per Session,your payment will not be refunded.',
+  'map_longitude' => '103.8014002',
+  'map_latitude' => '1.2763445',
 );
 );