You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

13 lines
376 B

  1. from official.model import ClientOpinion
  2. from common import util
  3. def addOpinion(name, mail, opinion, ip):
  4. if name == '' and mail == '' and opinion == '':
  5. return util.re_err('缺少参数')
  6. result = ClientOpinion.addOpinion(name, mail, opinion, ip)
  7. if result:
  8. return util.re_su('增加成功')
  9. else:
  10. return util.re_err('添加失败')