Beispiel #1
0
 function get_users()
 {
     $where = array('used' => true);
     $sort = array('sort' => -1);
     $result = $this->user->find('users', $where, getPageLimit());
     echo $this->json->encode($result);
 }
Beispiel #2
0
 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);
 }
Beispiel #3
0
 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);
 }
Beispiel #4
0
 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);
 }