@@ -1,10 +1,10 @@
import biz
import pycomm
-from models.zqChain import zqChain as zlm
-class zqChain(object):
- def __init__(self):
+from biz.baseBiz import baseBiz
+class zqChain(baseBiz):
+ def init(self):
self.csrc=biz.getCurrentSource()
- self.zqLeague=zlm()
+
def getOutUid(self,lgid):
return self.csrc+str(lgid)
@@ -6,7 +6,7 @@
"password":""
},
"mongo":{
- "host":"localhost",
+ "host":"192.168.33.10",
"port":"27017",
"user":"sports",
"password":"123456",
@@ -57,11 +57,11 @@ class SportslstSpider(scrapy.Spider):
cbk=getattr(res,cb)
re=cbk(response.body)
re=json.loads(re)
- print(subdel)
if subdel==0:
if 'total_page' in re:
self.subStart_request(re['total_page'],response.url,response.meta['cb'],'page_no')
- print(6666)
mcs=__import__('mcollect.'+self.curSrc+'.Storage',fromlist=True)
ress=mcs.Storage()
cbks=getattr(ress,cb)