component-shipinlv 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -52,7 +52,9 @@ var AuthReg = function AuthReg(_ref) {
52
52
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
53
53
  form = _Form$useForm2[0];
54
54
  var _useRequest = useRequest(function (data) {
55
- return AuthController.login(_objectSpread(_objectSpread({}, data), {}, {
55
+ return AuthController.login(_objectSpread(_objectSpread({
56
+ from: "web"
57
+ }, data), {}, {
56
58
  inviteUserId: Tool.getInviteUserId()
57
59
  }));
58
60
  }, {
@@ -136,6 +136,7 @@ var LoginQr = function LoginQr(_ref) {
136
136
  loginId: loginId,
137
137
  //string 32
138
138
  loginType: 'client',
139
+ from: "web",
139
140
  // 没有推荐者,会根据域名判断 经销商
140
141
  inviteUserId: Tool.getInviteUserId(),
141
142
  env: getApiEnv()
@@ -1,11 +1,13 @@
1
1
  export declare function login(body: {
2
2
  accountName: string;
3
3
  password: string;
4
+ from: "web";
4
5
  inviteUserId: number;
5
6
  }): Promise<UserAuth.LoginSuccessData>;
6
7
  export declare function weMiniLoginQr(body: {
7
8
  loginId: string;
8
9
  loginType: 'client';
10
+ from: string;
9
11
  inviteUserId: number;
10
12
  env: Global.Env;
11
13
  }): Promise<UserAuth.WeQrResult>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",