/** * 添加供应商类型的函数 * @return $result $result > 0 成功,否则失败 */ public function addPartnerType() { $data['category_name'] = post_check($_POST['category_name']); $result = PartnerTypeModel::insertRow($data); return $result; }