Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function receive(){
- $this->output->set_content_type('application/json');
- $phone = $this->input->post('phone');
- $name = $this->input->post('pushName');
- $message = $this->input->post('message');
- $groupId = $this->input->post('groupId');
- $groupSubject = $this->input->post('groupSubject');
- $image = $this->input->post('image');
- $file = $this->input->post('file');
- $url = $this->input->post('url');
- if($message == "/help"){
- $pesan = "Sabar, masih dalam proses!
- \nSebuahhobi
- ";
- echo $pesan;
- } else {
- echo null;
- }
- $data = [
- 'phone' => $phone,
- 'name' => $name,
- 'message' => $message,
- 'groupId' => $groupId,
- 'groupSubject' => $groupSubject,
- 'image' => $image,
- 'file' => $file,
- 'url' => $url
- ];
- $db = $this->ap->insert($data);
- }
Add Comment
Please, Sign In to add comment