コード例 #1
0
 public function chaxunKuaiDiNo()
 {
     $db = new DB_test();
     $arr_header = $this->arr_header;
     $arr_body = $this->arr_body;
     $arr_channelinfo = $this->arr_channelinfo;
     $com = $arr_body['com'];
     $nu = $arr_body['nu'];
     $query = "select fd_kdcompany_id as comid,fd_kdcompany_no as com,\n\t\t         fd_kdcompany_api as api,fd_kdcompany_name as comname from \n\t       tb_kdcompany where fd_kdcompany_no = '{$com}'";
     //只显示激活的列表
     $db->query($query);
     $arr_v = auto_charset($db->getFiledData(''), 'gbk', 'utf-8');
     $a = new Express();
     switch ($arr_v['api']) {
         case 'gethtmlorder':
             //echo $arr_v ['api'];
             $result = $a->gethtmlorder($com, $nu);
             $arr_msg['msgbody']['apiurl'] = $result;
             $arr_msg['msgbody']['apitype'] = $arr_v['api'];
             break;
         default:
             $result = $a->getorder($com, $nu);
             $arr_msg['msgbody'] = $result;
             $arr_msg['msgbody']['apitype'] = $arr_v['api'];
             break;
     }
     $arr_message = array("result" => "success", "message" => "读取成功!");
     $retcode = "0";
     //反馈状态 0 成功 200 自定义错误
     $returnvalue = array("msgbody" => $arr_msg['msgbody']);
     $returnval = TfbxmlResponse::ResponsetoApp($retcode, $returnvalue);
     return $returnval;
 }
コード例 #2
0
 public function kuaiState()
 {
     $db = new DB_test();
     $arr_header = $this->arr_header;
     $arr_body = $this->arr_body;
     $arr_channelinfo = $this->arr_channelinfo;
     $authorid = trim($arr_header['authorid']);
     $kdtype = trim($arr_body['kdtype']);
     $kdcode = trim($arr_body['kdcode']);
     $a = new Express();
     $arr_msg = $a->gethtmlorder($kdtype, $kdcode);
     //print_r($arr_msg);exit;
     $returnvalue = array($arr_msg);
     $retcode = "0";
     //反馈状态 0 成功 200 自定义错误
     $returnval = TfbxmlResponse::ResponsetoApp($retcode, $returnvalue);
     return $returnval;
 }