本文整理汇总了PHP中get_api_data函数的典型用法代码示例。如果您正苦于以下问题:PHP get_api_data函数的具体用法?PHP get_api_data怎么用?PHP get_api_data使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_api_data函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: index
public function index()
{
$user_tucao = $this->input->post('user_tucao');
$must = array('user_tucao' => $user_tucao);
$res = get_api_data('user/tucao', $must);
echo json_encode($res);
}
示例2: __construct
public function __construct()
{
parent::__construct();
$this->load->library('session');
/*加载 session 类*/
$this->get_data = $this->input->get();
$this->post_data = $this->input->post();
$admin_session = $this->session->userdata('admin_session');
//管理员登录后才可以访问
$login_url = uri_string();
if ($login_url != 'auth/login' && $login_url != 'auth/do_login') {
$res = get_api_data('employee/is_login', array('session' => $admin_session));
if ($res['err_num'] == 0) {
$this->employee_info['employee'] = $res['results']['employee'];
} else {
redirect(base_url('auth/login'));
}
}
$this->init();
$this->data['topnav'] = $this->top_nav;
$this->data['title'] = "街报web管理系统";
//web页面默认名字
//设置分页默认值 page_now
if (!isset($this->get_data['page_now'])) {
$this->get_data['page_now'] = 1;
}
}
示例3: index
public function index()
{
$mall_id = $this->input->post('mall_id');
$must = array('mall_id' => $mall_id);
$res = get_api_data('ad/mall_ad_lists', $must);
echo json_encode($res);
}
示例4: index
public function index()
{
$comment = $this->input->post('comment');
$must = array('comment' => $comment);
$res = get_api_data('user/comment_add', $must);
echo json_encode($res);
}
示例5: index
public function index()
{
$must = array('store_id' => 1);
$res = get_api_data('store/add_verify_code', $must);
op($res);
echo json_encode($res);
}
示例6: index
public function index()
{
$floor_id = $this->input->post('floor_id');
$must = array('floor_id' => $floor_id);
$res = get_api_data('mall_floor/detail', $must);
echo json_encode($res);
}
示例7: check_push_events_bitbucket
function check_push_events_bitbucket($repo)
{
$data = get_api_data("/api/1.0/repositories/{$repo}/events", "bitbucket");
$changesets = get_api_data("/api/1.0/repositories/{$repo}/changesets?limit=10", "bitbucket");
for ($i = 0; $i < count($data["events"]); $i++) {
if (isset($data["events"][$i]["utc_created_on"]) == False) {
continue;
}
$timestamp = $data["events"][$i]["utc_created_on"];
$t = convert_timestamp($timestamp, "Y-m-d H:i:s ");
$dt = microtime(True) - $t;
if ($dt <= TIME_LIMIT_SEC) {
if ($data["events"][$i]["event"] == "pushed") {
pm(FEED_CHAN, chr(3) . "13" . "push to https://bitbucket.org/{$repo} @ " . date("H:i:s", $t) . " by " . $data["events"][$i]["user"]["username"]);
$commits = $data["events"][$i]["description"]["commits"];
for ($j = 0; $j < count($commits); $j++) {
$changeset = bitbucket_get_changeset($changesets, $commits[$j]["hash"]);
if ($changeset === False) {
pm(FEED_CHAN, "changeset not found");
continue;
}
$desc = $commits[$j]["description"];
if ($desc != $changeset["message"]) {
continue;
}
pm(FEED_CHAN, chr(3) . "11" . " " . $changeset["author"] . ": " . $changeset["message"]);
$url = "https://bitbucket.org/{$repo}/commits/" . $commits[$j]["hash"];
pm(FEED_CHAN, chr(3) . "11" . " " . $url);
}
}
}
}
}
示例8: index
public function index()
{
$store_session = $this->input->post('store_session');
$must = array('store_session' => $store_session);
$res = get_api_data('store/storedetail', $must);
echo json_encode($res);
}
示例9: index
public function index()
{
$must = array('province' => '北京', 'page_now' => 1);
//可选参数 : 'page_size'=>1000
$res = get_api_data('city/lists', $must);
echo json_encode($res);
}
示例10: index
public function index()
{
$district_id = $this->input->post('district_id');
$must = array('district_id' => $district_id);
$res = get_api_data('district/detail', $must);
echo json_encode($res);
}
示例11: index
public function index()
{
$phone = $this->input->post('phone');
$must = array('phone' => $phone);
$res = get_api_data('user/msg_verify', $must);
echo json_encode($res);
}
示例12: edit_store
public function edit_store()
{
$store_id = $this->get_data['store_id'];
$ret = get_api_data('store/detail', array('store_id' => $store_id));
$this->data['store_info'] = $ret['results'];
$this->load->view('store_box/store_edit', $this->data);
}
示例13: index
public function index()
{
$store_account = $this->input->post('store_account');
$pwd = $this->input->post('pwd');
$must = array('store_account' => $store_account, 'pwd' => $pwd);
$res = get_api_data('store/login', $must);
echo json_encode($res);
}
示例14: index
public function index()
{
$session = $_COOKIE['session'];
$must = array('session' => $session);
$res = get_api_data('user/user_street_time', $must);
op($res);
echo json_encode($res);
}
示例15: index
public function index()
{
$session_val = $_COOKIE['session'];
$event_id = $this->input->post('event_id');
$must = array('session' => $session_val, 'event_id' => $event_id);
$res = get_api_data('user/like_event', $must);
echo json_encode($res);
}