예제 #1
0
 public function ajaxGetChildCategory()
 {
     $id = request::postParam('id');
     $categoryList = $this->showCategoryModel->getChildCategoryByIdCache($id);
     if ($categoryList) {
         $data = array('code' => 200, 'list' => $categoryList, 'message' => '获取数据成功');
     } else {
         $data = array('code' => 201, 'list' => '', 'message' => '无数据信息');
     }
     utils::resposeJson($data);
 }
예제 #2
0
 public function ajaxGetChild()
 {
     $id = request::getParam('id');
     $addressList = $this->addressObj->getChildAddressByIdCache($id);
     utils::resposeJson(array('code' => 200, 'mobileaddress' => $addressList));
 }
예제 #3
0
 private function responseJsonData($code, $message = '', $data = '')
 {
     $resultArr = array('code' => $code, 'message' => $message, 'data' => $data);
     utils::resposeJson($resultArr);
 }