@@ -165,7 +165,7 @@ def server(self):
165
165
def GetBook (self , bookId ) -> BookInfo :
166
166
if not bookId :
167
167
return
168
- return self .books .get (int (bookId ))
168
+ return self .books .get (str (bookId ))
169
169
170
170
def UpdateBookInfoList (self , bookList ):
171
171
for info in bookList :
@@ -176,6 +176,7 @@ def UpdateBookInfoList(self, bookList):
176
176
self .books [info .baseInfo .id ] = info
177
177
178
178
def UpdateBookInfo (self , bookId , info ):
179
+ bookId = str (bookId )
179
180
book = self .GetBook (bookId )
180
181
assert isinstance (info , BookInfo )
181
182
if not book :
@@ -186,6 +187,7 @@ def UpdateBookInfo(self, bookId, info):
186
187
return
187
188
188
189
def UpdateBookPicture (self , bookId , epsId , aid , minAid , pictureUrl , pictureName ):
190
+ bookId = str (bookId )
189
191
book = self .GetBook (bookId )
190
192
assert isinstance (book , BookInfo )
191
193
if not book :
@@ -200,6 +202,7 @@ def UpdateBookPicture(self, bookId, epsId, aid, minAid, pictureUrl, pictureName)
200
202
return
201
203
202
204
def UpdateBookEps (self , bookId , newEps ):
205
+ bookId = str (bookId )
203
206
book = self .GetBook (bookId )
204
207
assert isinstance (book , BookInfo )
205
208
if not book :
@@ -211,6 +214,7 @@ def UpdateBookEps(self, bookId, newEps):
211
214
book .pageInfo .epsInfo [newEps .index ] = newEps
212
215
213
216
def UpdateBookEpsScrambleId (self , bookId , epsIndex , scrambleId ):
217
+ bookId = str (bookId )
214
218
book = self .GetBook (bookId )
215
219
assert isinstance (book , BookInfo )
216
220
if not book :
0 commit comments