diff --git a/src/utils/model.py b/src/utils/model.py index f5bfcd3..f8e9651 100755 --- a/src/utils/model.py +++ b/src/utils/model.py @@ -98,7 +98,7 @@ class User(db.Model): self.department = department self.truename = truename self.tel = tel - self.beans = 1000 + self.beans = 150 if (date != None): self.register_date = date else: diff --git a/user/user.py b/user/user.py index 7d5ed6b..9a38c7f 100755 --- a/user/user.py +++ b/user/user.py @@ -521,7 +521,7 @@ def beans_apply(cur_user,user,form,issue): if issue == 'apply': if not cur_user.status == 'normal': return json.dumps({'success':'false', 'message':'Fail to apply for beans because your account is locked/not activated. Please:'+ - '
1. Complete your information and activate your account.
Or:
2.Contact administor for further information'}) + '\n 1. Complete your information and activate your account. \n Or: \n 2.Contact administor for further information'}) number = form.get("number",None) reason = form.get("reason",None) if number is None or reason is None: