sophieChenyx 6 роки тому
батько
коміт
422d8aae7f
1 змінених файлів з 3 додано та 0 видалено
  1. 3 0
      src/util/API/APIClient.js

+ 3 - 0
src/util/API/APIClient.js

@@ -25,9 +25,11 @@ class APIClient {
 	// 账户登录,获取token,绑定设备
 	static userLoginAndBindDevice(data, callback) {
 		let deviceCode = localStorage.getItem('deviceCode');
+		let deviceType = "";
 		if (!deviceCode) {
 			if (window.efunbox) {
 				deviceCode = window.efunbox.getUuidForDevice();
+				deviceType = window.efunbox.getTypeForDevice();
 			} else {
 				deviceCode = Utils.getUuidForWeb();
 			}
@@ -37,6 +39,7 @@ class APIClient {
 			deviceCode,
 			eid: data.usercode,
 			password: data.password,
+      deviceType:deviceType
 		};
 		AJAXHelper.post('/token', params, callback);
 	}