【云顶娱乐平台】php结合安卓客户端实现查询交互实例_php技巧_脚本之家

以上所述就是本文的全部内容了,希望大家能够喜欢。

function getids(){ $this->output->set_header('Content-Type: application/json; charset=utf-8'); $jsonstr = ''; $pname = $pcallid = $pworkid = ''; if  { $pname = $_GET['name']; } if (isset { $pcallid = $_GET['callid']; } if (isset { $pworkid = $_GET['workid']; } $this->load->model; $this->wireid_model->insertonly; if ($pname == '' && $pcallid == '' && $pworkid == '') { die(); } else { $sqlstr = 'select * from twireid where 1=1 '; if  { $sqlstr = $sqlstr . " and GNAME='{$pname}' "; } else if  { $sqlstr = $sqlstr . " and GOLDCALLID='{$pcallid}' "; } else if  { $sqlstr = $sqlstr . " and GCARDID='{$pworkid}' "; } $getdata = $this->wireid_model->getsql; // JSON_FORCE_OBJECT 防止出现 [] $jsonstr = json_encode($getdata->result_array; echo $jsonstr; }}

doAskTask = new Runnable() { @Override public void run() { // TODO // 在这里进行 http request.网络请求相关操作 ggname = etname.getText; ggworkid = etworkid.getText; ggcallid = etcallid.getText; String baseurl = ConfidDatas.askbaseurl; String askstr = "name=" + ggname + "&call&workvalue", result); data.putString; msg.setData; handler.sendMessage; } catch  { // e.printStackTrace(); } catch  { // e.printStackTrace(); } } else { // 错误 data.putString; data.putString; msg.setData; handler.sendMessage; } } };