MyService


单击此处,获取完整的操作列表。

LoginOperatorsCode

用户登录(巡探卫士登录,新版程序,需要激活码)
参数
string DeviceTypeNo:激活码解码后的 DeviceTypeNo,加密
string MobileNo:激活码解码后的 DeviceID,加密
string UserName:用户名称(或者手机号码或者邮件地址),加密
string Password:密码,加密
string ActivationCode:激活码,不用加密!不用加密!不用加密!(激活码字符串本身就是加密的字符串)
string LoginTypeID:是否强制登录:0、否;1、是;加密
string DeviceString:收集到手机信息,不用加密!不用加密!不用加密!(json 字符串,暂时传入空值)
string AndroidID:AndroidID 安卓手机的 ID,不用加密!不用加密!不用加密! 【举例说明:1739f58129258a1f】
string APPActiCode:激活APP时,用到的激活码,不用加密!不用加密!不用加密! 【举例说明:U2LX0-SH8MK-DNTER-AU6WB】

返回结构:
public class LoginResult
{
    public int Result; // 返回结果,错误代码
    public int UserID; // 用户ID,数据库字段ID,唯一值
    public string CardNo; // 当前登录用户卡号
    public string UserName; // 当前登录用户名称
    public string CompanyName; // 所属公司名称
    public string LoginPassword; // 当前用户所属的公司编码【借用】
    public string DeviceTypeNo; // 设备型号【我们建议的定义的一个固定常量,为了方便调用,此次通过接口返回属性的方式返回】
    public string DeviceID; // 设备ID【将登录的手机号,当作设备ID,为了方便调用,此次通过接口返回属性的方式返回】
    public string DeviceName; // 设备名称
    public int UserType; // 用户分类【0、企业管理员;1、普通管理员;2、操作员;】
    public int DealerID; // 当前用户所属的经销商ID
    public string ReadCardMode; // Z-9000 对应的读卡模式:1、普通二维码;2、蓝牙读卡;3、射频读卡;4、GPS;5、精确二维码;【返回的数据可以为空,可以同时选择多种模式,返回数据示例:多种模式 1,2,3,4, 一种模式 1, 】
    public string ReadCardTimeSpacing; // Z-M900 系列 对应的读卡时间间隔(单位:分钟)
    public string ErWeiMaStr; // 当前公司对应的二维码字符串
    public string QyErweiPath; // 企业二维码网络图片地址
    public string jSonContent; // 当前登录用户的权限信息
    public string ErrorMessage; // 登录过程中,服务器返回的错误信息
    public string Message; // 错误信息【成功的时候为Token】
}

返回值
Result描述
Result=0执行成功,Message为Token数据
(此时对 RouteCount 进行判断,当 RouteCount = 1 的时候,弹出一个对话框“您的存储记录配额即将用完,如需扩容请联系供应商 !”,然后继续登录)
Result=-1程序错误,Message为错误信息
Result=-2此手机号码未注册
Result=-3公司未启用
Result=-4当前公司使用到期
Result=-5经销商使用到期
Result=-6不存在合法的加密狗或证书
Result=-7设备使用超额
Result=-8登录用户不存在
Result=-9密码输入错误
Result=-11查询公司信息出现错误
Result=-12登录用户“未启用”,不能登录。
Result=-30更换了登录手机【当前帐号已经在其他机器上登录】
Result=-32加入新的“设备名称为空”判断
Result=-33设备名称已经存在,请更换设备名称
Result=-34新增设备失败
Result=-35当前设备已经存在于其他公司,请到其他公司删除后,在重新登录
Result=-36您的存储记录已超过配额。请联系供应商 !
Result=-37当前用户不允许在此设备上登录
Result=-100该登陆账号对应的经销商不存在
Result=-200该登陆账号对应的经销商二维码没有生成

测试

若要使用 HTTP POST 协议对操作进行测试,请单击“调用”按钮。
参数
DeviceTypeNo:
MobileNo:
UserName:
Password:
ActivationCode:
LoginTypeID:
DeviceString:
AndroidID:
APPActiCode:

SOAP 1.1

以下是 SOAP 1.2 请求和响应示例。所显示的占位符需替换为实际值。

POST /MyService.asmx HTTP/1.1
Host: www.zooytech.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/LoginOperatorsCode"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <LoginOperatorsCode xmlns="http://tempuri.org/">
      <DeviceTypeNo>string</DeviceTypeNo>
      <MobileNo>string</MobileNo>
      <UserName>string</UserName>
      <Password>string</Password>
      <ActivationCode>string</ActivationCode>
      <LoginTypeID>string</LoginTypeID>
      <DeviceString>string</DeviceString>
      <AndroidID>string</AndroidID>
      <APPActiCode>string</APPActiCode>
    </LoginOperatorsCode>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <LoginOperatorsCodeResponse xmlns="http://tempuri.org/">
      <LoginOperatorsCodeResult>string</LoginOperatorsCodeResult>
    </LoginOperatorsCodeResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

以下是 SOAP 1.2 请求和响应示例。所显示的占位符需替换为实际值。

POST /MyService.asmx HTTP/1.1
Host: www.zooytech.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <LoginOperatorsCode xmlns="http://tempuri.org/">
      <DeviceTypeNo>string</DeviceTypeNo>
      <MobileNo>string</MobileNo>
      <UserName>string</UserName>
      <Password>string</Password>
      <ActivationCode>string</ActivationCode>
      <LoginTypeID>string</LoginTypeID>
      <DeviceString>string</DeviceString>
      <AndroidID>string</AndroidID>
      <APPActiCode>string</APPActiCode>
    </LoginOperatorsCode>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <LoginOperatorsCodeResponse xmlns="http://tempuri.org/">
      <LoginOperatorsCodeResult>string</LoginOperatorsCodeResult>
    </LoginOperatorsCodeResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

以下是 HTTP GET 请求和响应示例。所显示的占位符需替换为实际值。

GET /MyService.asmx/LoginOperatorsCode?DeviceTypeNo=string&MobileNo=string&UserName=string&Password=string&ActivationCode=string&LoginTypeID=string&DeviceString=string&AndroidID=string&APPActiCode=string HTTP/1.1
Host: www.zooytech.com
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://tempuri.org/">string</string>

HTTP POST

以下是 HTTP POST 请求和响应示例。所显示的占位符需替换为实际值。

POST /MyService.asmx/LoginOperatorsCode HTTP/1.1
Host: www.zooytech.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

DeviceTypeNo=string&MobileNo=string&UserName=string&Password=string&ActivationCode=string&LoginTypeID=string&DeviceString=string&AndroidID=string&APPActiCode=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://tempuri.org/">string</string>