public function getqtcj()
 {
     $number = cookie('number');
     $sessionid = M('info')->where("number='%s'", $number)->getField('sessionid');
     $cookie = "PHPSESSID=" . trim($sessionid);
     $post_data = array('session_id' => $sessionid);
     $data = send_post2('http://www.dean.gxnu.edu.cn/jwxt/index.php/api/chengji/getqtcj', $post_data, $cookie);
     $data = json_decode($data, TRUE);
     $this->assign('data', $data['msg']);
     $this->display();
 }
Esempio n. 2
0
function addTask($config)
{
    echo send_post2($config['apiURL'] . "/api/tasks", array('content' => '测试订单', '_tasklistId' => $config['_tasklistId'], '_stageId' => $config['_stageId']), $config['access_token']);
}