function get_users() { $where = array('used' => true); $sort = array('sort' => -1); $result = $this->user->find('users', $where, getPageLimit()); echo $this->json->encode($result); }
function channelList() { if (isset($_GET["id"]) && $_GET["id"] !== 'undefined') { $where['channel_logId'] = new MongoId($_GET['id']); } $result = $this->logistic->find('logistics_channels', $where, getPageLimit()); echo $this->json->encode($result); }
function get_audit_personal() { $state = isset($_GET["state"]) ? intval($_GET["state"]) : 0; $where = array('state' => $state, 'type' => 'personal'); $condition = getPageLimit(); $condition['sort'] = array('applyTime' => 1); $result = $this->merchant->find('merchants', $where, $condition); echo $this->json->encode($result); }
function logistics_category_channels() { $where = array("category" => $_GET["category"], 'used' => true); $result = $this->channel->find('logistics_category_channels', $where, getPageLimit()); echo $this->json->encode($result); }