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); }
public function ajaxGetChild() { $id = request::getParam('id'); $addressList = $this->addressObj->getChildAddressByIdCache($id); utils::resposeJson(array('code' => 200, 'mobileaddress' => $addressList)); }
private function responseJsonData($code, $message = '', $data = '') { $resultArr = array('code' => $code, 'message' => $message, 'data' => $data); utils::resposeJson($resultArr); }