Example #1
0
 public function actionCancelMoveCar()
 {
     $phone_num = $_GET['phone'];
     $sms_code = $_GET['password'];
     $agree = $_GET['agree'];
     $record = CarMoveManager::deleteCarMoveInfoRecord($type, $licencePlate, $address);
     $ret_json = array('status' => 0, 'message' => '取消挪车请求成功!', 'data' => array());
     echo CJSON::encode($ret_json);
 }
Example #2
0
 public function actionCancelMoveCar()
 {
     header('Content-Type: application/javascript');
     $callback = $_REQUEST['callback'];
     $type = $_REQUEST['type'];
     $licencePlate = $_REQUEST['licencePlate'];
     $address = $_REQUEST['address'];
     $ret = CarMoveManager::deleteCarMoveInfoRecord($type, $licencePlate, $address);
     if ($ret == 1) {
         $ret_json = array('status' => 0, 'message' => '取消挪车请求成功!', 'data' => array());
     } else {
         $ret_json = array('status' => 1, 'message' => '取消挪车请求失败,挪车记录不存在!', 'data' => array());
     }
     echo $callback . "(" . CJSON::encode($ret_json) . ");";
 }