def setup_class(self):
     self.library = cdll.LoadLibrary(config.get_library())
     self.common = app.Common()
     self.common.initSDK(library=self.library,
                         init_info=config.get_app_url())
     # 登录信息参数
     login_param = self.common.app_login_param(
         username=config.get_account("app")["username"],
         password=config.get_account("app")["password"])
     # 登录
     login_info = self.common.app_login(library=self.library,
                                        param=login_param)
     self.user_uid = eval(login_info["pBody"])["i"]
Exemple #2
0
 def setup_class(self):
     # 客服app登录
     self.service_library = cdll.LoadLibrary(config.get_library("service_library_path"))
     self.service_app = auv_service.Common()
     self.service_app.initSDK(library=self.service_library, init_info=config.get_app_url())
     # 登录信息参数
     service_login_param = self.service_app.app_login_param(username=config.get_account("app_serivce")["username"],
                                                            password=config.get_account("app_serivce")["password"])
     # 登录
     service_login_info = self.service_app.app_login(library=self.service_library, param=service_login_param)
     self.service_user_uid = eval(service_login_info["pBody"])["i"]
     # 车队app登录
     self.library = cdll.LoadLibrary(config.get_library())
     self.app = auv_app_new.Common()
     self.app.initSDK(library=self.library, init_info=config.get_app_url())
     # 登录信息参数
     login_param = self.app.app_login_param(username=config.get_account("app")["username"],
                                            password=config.get_account("app")["password"])
     # 登录
     login_info = self.app.app_login(library=self.library, param=login_param)
     self.user_uid = eval(login_info["pBody"])["i"]
     # 获取货品名称列表
     goods_name_list_param = self.service_app.auv_param_md_41_cmd_115()
     goods_name_list_info = self.service_app.auv_md_41_cmd_115(library=self.service_library,
                                                               param=goods_name_list_param)
     self.goods_name_list = eval(goods_name_list_info["pBody"])["a"]
     # 车队认证信息参数
     enterprise_info_param = self.app.auv_param_md_40_cmd_23()
     # 获取车队认证信息
     enterprise_info = self.app.auv_md_40_cmd_23(library=self.library, param=enterprise_info_param)
     # 车队ID
     self.enterprise = eval(enterprise_info["pBody"])["a"]
     # 车队名称
     self.enterprise_name = eval(enterprise_info["pBody"])["b"]
     # 姓名
     self.user_name = eval(enterprise_info["pBody"])["c"]
 def setup_class(self):
     self.shipper = shipper.Shipper()
     self.service = service.Service()
     self.dispatch = dispatch.Dispatch()
     self.finance = finance.Finance()
     self.shipper_token = self.shipper.shipper_login(
         mobile=config.get_account("shipper")["username"],
         password=config.get_account("shipper")["password"])
     self.service_token = self.service.service_login(
         username=config.get_account("service")["username"],
         password=config.get_account("service")["password"])
     self.dispatch_token = self.dispatch.dispatch_login(
         username=config.get_account("dispatch")["username"],
         password=config.get_account("dispatch")["password"])
     self.finance_token = self.finance.finance_login(
         username=config.get_account("finance")["username"],
         password=config.get_account("finance")["password"])
     self.library = cdll.LoadLibrary(config.get_library())
     self.common = app.Common()
     self.common.initSDK(library=self.library,
                         init_info=config.get_app_url())
from ctypes import *
from src.pages import auv_service
from src.common import config
import random
import time

# 客服账号
username = "******"
password = "******"
# 添加小五类型:1全部调度,非1为随机某个小五
dispatch_type = 0

# 客服app登录
service_library = cdll.LoadLibrary(config.get_library("service_library_path"))
service_app = auv_service.Common()
service_app.initSDK(library=service_library, init_info=config.get_app_url())
# 登录信息参数
service_login_param = service_app.app_login_param(username=username,
                                                  password=password)
# 登录
service_login_info = service_app.app_login(library=service_library,
                                           param=service_login_param)
service_user_uid = eval(service_login_info["pBody"])["i"]

# 获取货品名称列表
goods_name_list_param = service_app.auv_param_md_41_cmd_115()
goods_name_list_info = service_app.auv_md_41_cmd_115(
    library=service_library, param=goods_name_list_param)
goods_name_list = eval(goods_name_list_info["pBody"])["a"]

# 查询小五列表参数
Exemple #5
0
# coding:utf-8
from src.common import config
from src.pages import auv_app_new as app
from ctypes import *
import random

# 车队账号
username = "******"
password = "******"

# 初始化
library = cdll.LoadLibrary(config.get_library())
common = app.Common()
common.initSDK(library=library, init_info=config.get_app_url())

# 登录信息参数
login_param = common.app_login_param(username=username, password=password)
# 登录
common.app_login(library=library, param=login_param)
# 车队认证信息参数
enterprise_info_param = common.auv_param_md_40_cmd_23()
# 获取车队认证信息
enterprise_info = common.auv_md_40_cmd_23(library=library,
                                          param=enterprise_info_param)
# 车队ID
enterprise = eval(enterprise_info["pBody"])["a"]
# 车队名称
enterprise_name = eval(enterprise_info["pBody"])["b"]

# 手机号
phone = random.randint(15000000000, 15999999999)