예제 #1
0
 public function get_all_headShops($skip = 0, $limit = 20)
 {
     $where = json_encode(avosExists('parent', false));
     $url = HOST . "/classes/Shop?order=-createdAt&skip={$skip}&limit={$limit}&where={$where}";
     $json = $this->avoslibrary->get($url);
     $results = json_decode($json, true);
     if (empty($results['error'])) {
         return $results['results'];
     } else {
         return $results;
     }
 }
예제 #2
0
 function get_all_subTypes()
 {
     $where = json_encode(avosExists('parent', true));
     $url = HOST . '/classes/CouponType?where=' . $where;
     $json = $this->avoslibrary->get($url);
     $results = json_decode($json, true);
     if (empty($results['error'])) {
         return $results['results'];
     } else {
         return $results;
     }
 }
예제 #3
0
 /**
  * 
  * 返回所有一级类型
  */
 public function get_all_headDistrict()
 {
     $where = json_encode(avosExists('parent', false));
     $url = HOST . '/classes/District?include=subDistricts&where=' . $where;
     $json = $this->avoslibrary->get($url);
     $results = json_decode($json, true);
     if (empty($results['error'])) {
         return $results['results'];
     } else {
         //   			return $results;
         return Error_Retrieve_Object;
     }
 }