本文整理汇总了PHP中get_api_data函数的典型用法代码示例。如果您正苦于以下问题:PHP get_api_data函数的具体用法?PHP get_api_data怎么用?PHP get_api_data使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_api_data函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
}
开发者ID:codekissyoung,项目名称:kanjiebao,代码行数:7,代码来源:Tucaoapi.php
示例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;
}
}
开发者ID:codekissyoung,项目名称:kanjiebao,代码行数:27,代码来源:Ad_Controller.php
示例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);
}
开发者ID:codekissyoung,项目名称:kanjiebao,代码行数:7,代码来源:Malladlistapi.php
示例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);
}
开发者ID:codekissyoung,项目名称:kanjiebao,代码行数:7,代码来源:Districtcommentapi.php
示例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);
}
开发者ID:codekissyoung,项目名称:kanjiebao,代码行数:7,代码来源:GetV.php
示例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);
}
开发者ID:codekissyoung,项目名称:kanjiebao,代码行数:7,代码来源:Mapapi.php
示例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);
}
}
}
}
}
开发者ID:cmn32480,项目名称:exec-irc-bot,代码行数:33,代码来源:bitbucket_feed.php
示例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);
}
开发者ID:codekissyoung,项目名称:kanjiebao,代码行数:7,代码来源:StoreDetail.php
示例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);
}
开发者ID:codekissyoung,项目名称:kanjiebao,代码行数:7,代码来源:Cityapi.php
示例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);
}
开发者ID:codekissyoung,项目名称:kanjiebao,代码行数:7,代码来源:Districtdetailapi.php
示例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);
}
开发者ID:codekissyoung,项目名称:kanjiebao,代码行数:7,代码来源:Verificationapi.php
示例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);
}
开发者ID:codekissyoung,项目名称:kanjiebao,代码行数:7,代码来源:Store_box.php
示例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);
}
开发者ID:codekissyoung,项目名称:kanjiebao,代码行数:8,代码来源:Login.php
示例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);
}
开发者ID:codekissyoung,项目名称:kanjiebao,代码行数:8,代码来源:GetTime.php
示例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);
}
开发者ID:codekissyoung,项目名称:kanjiebao,代码行数:8,代码来源:Collectapi.php
示例16: login_list
public function login_list()
{
$must = array('page_now' => $this->get_data['page_now'], 'page_size' => 10);
$ret = get_api_data('user/login_list', $must);
$this->data['users'] = $ret['results']['records'];
$this->data['pager'] = $ret['results']['pager'];
$this->data['url'] = 'user/login_list';
$this->load->view('user/login_list', $this->data);
}
开发者ID:codekissyoung,项目名称:kanjiebao,代码行数:9,代码来源:User.php
示例17: index
public function index()
{
$this->data["title"] = "享优惠看街报";
$res = get_api_data('event/lists', $this->get_data);
if ($res['err_num'] == 0) {
$this->data['events'] = get_api_data('event/lists', $this->get_data)['results']['records'];
}
$this->load->view('index', $this->data);
}
开发者ID:codekissyoung,项目名称:kanjiebao,代码行数:9,代码来源:Index.php
示例18: index
public function index()
{
$store_id = $this->input->post('store_id');
$lng = $this->input->post('lng');
$lat = $this->input->post('lat');
$must = array('store_id' => $store_id, 'Longitude' => $lng, 'Latitude' => $lat);
$res = get_api_data('store/detail', $must);
echo json_encode($res);
}
开发者ID:codekissyoung,项目名称:kanjiebao,代码行数:9,代码来源:Storedetailapi.php
示例19: index
public function index()
{
$session_val = $_COOKIE['session'];
$new_pwd = $this->input->post('new_pwd');
$new_pwd_re = $this->input->post('new_pwd_re');
$must = array("session" => $session_val, 'new_pwd' => $new_pwd, "new_pwd_re" => $new_pwd_re);
$res = get_api_data('user/modify_pwd', $must);
echo json_encode($res);
}
开发者ID:codekissyoung,项目名称:kanjiebao,代码行数:9,代码来源:Changepassapi.php
示例20: index
public function index()
{
$session_val = $_COOKIE['session'];
$must = array('session' => $session_val);
$res = get_api_data('user/logout', $must);
if (0 == $res['err_num']) {
setcookie('session', '');
}
echo json_encode($res);
}
开发者ID:codekissyoung,项目名称:kanjiebao,代码行数:10,代码来源:Logoutapi.php
注:本文中的get_api_data函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论