|
@@ -10,12 +10,13 @@ function getProjectId() {
|
|
|
}
|
|
|
|
|
|
function commonParams() {
|
|
|
- var userObj = UserStorage.getInstance();
|
|
|
- const user = userObj.getUser();
|
|
|
+ // var userObj = UserStorage.getInstance();
|
|
|
+ // const user = userObj.getUser();
|
|
|
+ // return `openid=${user.id}&pubname=${pubname}&projectId=${getProjectId()}&userId=${
|
|
|
+ // user.id
|
|
|
+ // }&userName=${user.name}&userPhone=${user.phone}`;
|
|
|
var pubname = 'sgadmin';
|
|
|
- return `openid=${user.id}&pubname=${pubname}&projectId=${getProjectId()}&userId=${
|
|
|
- user.id
|
|
|
- }&userName=${user.name}&userPhone=${user.phone}`;
|
|
|
+ return `projectId=${getProjectId()}&pubname=${pubname}`;
|
|
|
}
|
|
|
|
|
|
// function commonParams() {
|
|
@@ -212,11 +213,6 @@ export const changeAllAirHttp = (body) => {
|
|
|
|
|
|
// 查询空间空调信息
|
|
|
export const querySpaceConditioners = (params) => {
|
|
|
- var userObj = UserStorage.getInstance();
|
|
|
- const user = userObj.getUser();
|
|
|
- var pubname = 'sgadmin';
|
|
|
- var paramsss = `openid=${user.id}&pubname=${pubname}&projectId=Pj1101080255&userId=${user.id}&userName=${user.name}&userPhone=${user.phone}`;
|
|
|
-
|
|
|
return request(
|
|
|
`/sgadmin/duoduo-service/duoduoenv-service/ctrl/querySpaceConditioners?${commonParams()}&spaceId=${
|
|
|
params.spaceId
|
|
@@ -233,11 +229,6 @@ export const querySpaceConditioners = (params) => {
|
|
|
|
|
|
// 手动控制 下发指令
|
|
|
export const changeManualTempHttp = (params) => {
|
|
|
- var userObj = UserStorage.getInstance();
|
|
|
- const user = userObj.getUser();
|
|
|
- var pubname = 'sgadmin';
|
|
|
- var paramsss = `openid=${user.id}&pubname=${pubname}&projectId=Pj1101080255&userId=${user.id}&userName=${user.name}&userPhone=${user.phone}`;
|
|
|
-
|
|
|
return request(`/sgadmin/duoduo-service/duoduoenv-service/ctrl/set?${commonParams()}`, {
|
|
|
method: 'POST',
|
|
|
from: 'sagacare',
|