@@ -137,7 +137,7 @@ class RootController(BaseController):
137
137
#statuebuilding lev,corn(cae) defenceadd pop time
138
138
statuebuilding = [[27 ,80000 ,600 ,20 ,7200 ],[30 ,- 8 ,700 ,40 ,14400 ]]
139
139
#decorationbuild:cornorcae,人å£ä¸Šé™ï¼Œè§£é”ç‰çº§
140
- decorationbuild = [[10 ,5 ,1 ],[20 ,5 ,1 ],[30 ,5 ,1 ],[50 ,5 ,4 ],[- 1 ,50 ,5 ],[100 ,6 ,6 ],[100 ,6 ,6 ],[100 ,6 ,6 ],[100 ,6 ,6 ],[100 ,6 ,6 ],[100 ,6 ,6 ],[200 ,8 ,7 ],[- 3 ,170 ,8 ],[400 ,15 ,9 ],[600 ,20 ,10 ],[800 ,25 ,11 ],[1000 ,30 ,12 ],[900 ,35 ,13 ],[1200 ,40 ,14 ],[2000 ,50 ,15 ],[- 5 ,300 ,10 ],[1500 ,60 ,16 ],[1500 ,60 ,16 ],[1500 ,60 ,16 ],[1600 ,65 ,18 ],[1600 ,65 ,18 ],[1600 ,65 ,18 ],[1600 ,65 ,18 ],[- 3 ,150 ,15 ],[- 3 ,150 ,15 ],[- 3 ,150 ,15 ],[- 3 ,150 ,15 ],[1800 ,70 ,20 ],[1800 ,70 ,20 ],[1800 ,70 ,20 ],[2000 ,80 ,25 ],[2000 ,80 ,25 ],[2000 ,80 ,25 ],[- 10 ,300 ,20 ],[5000 ,90 ,3 ],[- 5 ,150 ,3 ],[- 10 ,300 ,3 ]]#corn(or cae),populationupbound
140
+ decorationbuild = [[10 ,5 ,1 ],[20 ,5 ,1 ],[30 ,5 ,1 ],[50 ,5 ,4 ],[- 1 ,50 ,5 ],[100 ,6 ,6 ],[100 ,6 ,6 ],[100 ,6 ,6 ],[100 ,6 ,6 ],[100 ,6 ,6 ],[100 ,6 ,6 ],[200 ,8 ,7 ],[- 3 ,170 ,8 ],[400 ,15 ,9 ],[600 ,20 ,10 ],[800 ,25 ,11 ],[1000 ,30 ,12 ],[900 ,35 ,13 ],[1200 ,40 ,14 ],[2000 ,50 ,15 ],[- 5 ,300 ,10 ],[1500 ,60 ,16 ],[1500 ,60 ,16 ],[1500 ,60 ,16 ],[1600 ,65 ,18 ],[1600 ,65 ,18 ],[1600 ,65 ,18 ],[1600 ,65 ,18 ],[- 3 ,150 ,15 ],[- 3 ,150 ,15 ],[- 3 ,150 ,15 ],[- 3 ,150 ,15 ],[1800 ,70 ,20 ],[1800 ,70 ,20 ],[1800 ,70 ,20 ],[2000 ,80 ,25 ],[2000 ,80 ,25 ],[2000 ,80 ,25 ],[- 10 ,300 ,20 ],[5000 ,90 ,3 ],[- 5 ,150 ,3 ],[- 10 ,300 ,3 ],[ 2000 , 30 , 17 ],[ - 10 , 300 , 20 ] ]#corn(or cae),populationupbound
141
141
#农作物list:#corn,exp,food,time,解é”ç‰çº§
142
142
Plant_Price = [[50 ,1 ,20 ,600 ,1 ],[165 ,3 ,50 ,2700 ,1 ],[- 1 ,8 ,120 ,3600 ,5 ],[700 ,7 ,150 ,9360 ,5 ],[1440 ,12 ,300 ,22680 ,7 ],[- 3 ,25 ,430 ,14400 ,7 ],[230 ,5 ,52 ,1800 ,13 ],[600 ,9 ,80 ,5400 ,16 ],[- 2 ,30 ,280 ,9000 ,10 ],[1210 ,15 ,200 ,11520 ,20 ],[3000 ,25 ,410 ,29160 ,25 ],[- 5 ,50 ,650 ,25200 ,15 ]]#corn,food,cae
143
143
beginTime = (2011 ,1 ,1 ,0 ,0 ,0 ,0 ,0 ,0 )
@@ -206,6 +206,11 @@ def getOtherid(self, uid):
206
206
return dict (id = 0 , reason = 'no such user' )
207
207
return dict (id = 1 , otherid = user .otherid )
208
208
@expose ('json' )
209
+ def removeMsg (self , uid , mid ):
210
+ msg = DBSession .query (Message ).filter_by (mid = mid ).one ()
211
+ DBSession .delete (msg )
212
+ return dict (id = 1 , result = "remove suc" )
213
+ @expose ('json' )
209
214
def sendMsg (self , uid , fid , msg ):
210
215
uid = int (uid )
211
216
fid = int (fid )
@@ -5126,7 +5131,7 @@ def build(self,user_id,city_id,ground_id,grid_id):# 对外接口,建造建筑
5126
5131
#reward
5127
5132
user .populationupbound += 100
5128
5133
5129
- dragon = Dragon (uid = user_id , bid = building .bid , friNum = 0 , state = 0 , health = 0 , name = 'æˆ‘çš„å® ç‰©' , kind = 0 , friList = '[]' , lastFeed = 0 , attack = 0 )
5134
+ dragon = Dragon (uid = user_id , bid = building .bid , friNum = 0 , state = 0 , health = 0 , name = 'æˆ‘çš„å® ç‰©' , kind = 0 , friList = '[]' , lastFeed = 0 , attack = 0 , trainNum = 0 )
5130
5135
DBSession .add (dragon )
5131
5136
#update business read for logsign
5132
5137
read (city_id )
0 commit comments