示例#1
0
 public static function getOrder($id)
 {
     $params['do'] = 'getOrder';
     $params['orderId'] = $id;
     $curlResult = Curl::get_data(Config::JSON_URL . self::SERVICE, http_build_query($params), ContentType::header_content_urlencoded);
     return $curlResult;
 }
示例#2
0
 public static function getDistibuterList($addressId)
 {
     $params['do'] = 'getDistributerList';
     $params['addressId'] = $addressId;
     $curlResult = Curl::get_data(Config::JSON_URL . self::SERVICE, http_build_query($params), ContentType::header_content_urlencoded);
     return json_encode($curlResult);
 }
示例#3
0
 public static function searchAddress($cityName)
 {
     $params['do'] = 'searchAddress';
     $params['city'] = $cityName;
     $curlResult = Curl::get_data(Config::JSON_URL . 'AddressServlet', http_build_query($params), ContentType::header_content_urlencoded);
     return json_encode($curlResult);
 }
示例#4
0
 public static function getSubCategoryById($parentId)
 {
     $params['do'] = 'getSections';
     $params['parentId'] = $parentId;
     $curlResult = Curl::get_data(Config::JSON_URL . Category::SERVICE, http_build_query($params), ContentType::header_content_urlencoded);
     return $curlResult;
 }
示例#5
0
 public static function login($mail, $pass)
 {
     $params['do'] = 'login';
     $params['mail'] = $mail;
     $params['pass'] = $pass;
     $params["type"] = "admin";
     $curlResult = Curl::get_data(Config::JSON_URL . User::SERVICE, http_build_query($params), ContentType::header_content_urlencoded);
     return $curlResult;
 }
示例#6
0
 public static function getProductListBySection($sectionId, $distributerId)
 {
     $params = array('do' => 'getProductList', 'sectionId' => $sectionId, 'distributerId' => $distributerId);
     $curlResult = Curl::get_data(Config::JSON_URL . ProductList::SERVICE, http_build_query($params), ContentType::header_content_urlencoded);
     return $curlResult;
 }
示例#7
0
 public static function getSections()
 {
     $params['do'] = 'getSections';
     $curlResult = Curl::get_data(Config::JSON_URL . self::SERVICE, http_build_query($params), ContentType::header_content_urlencoded);
     return json_encode($curlResult);
 }