Kaynağa Gözat

更新SIM卡

林轩 1 hafta önce
ebeveyn
işleme
5ff768a68c
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      utils/utils.py

+ 1 - 1
utils/utils.py

@@ -67,7 +67,7 @@ class GetDashujuSiqingDeviceInfo(object):
         passwd = parse.quote_plus("yfkj@6020")
         da_shuju = "192.168.4.52"
         si_qing = "172.16.220.3"
-        myclient = pymongo.MongoClient("mongodb://{0}:{1}@{2}:57017/".format(user,passwd, da_shuju))
+        myclient = pymongo.MongoClient("mongodb://{0}:{1}@{2}:27017/".format(user,passwd, da_shuju))
         db = myclient.smartfarming
         self.sa_device = db.sa_device
         sa_device_type = db.sa_device_type