bug修改

This commit is contained in:
XiuYun CHEN
2025-06-18 10:29:28 +08:00
parent 7414611bc5
commit 4d4a345038
5 changed files with 23 additions and 20 deletions
@@ -6,22 +6,22 @@ export class BasicConstant {
static readonly getzcxy = "http://app.igandan.com/expert_zcxy.jsp";// 注册协议正式地址
//测试环境
// static readonly urlExpertAPI = "https://dev-app.igandan.com/app/expertAPI/";
// static readonly urlExpertApp = "https://dev-app.igandan.com/app/expertApp/"
// static readonly urlHtml = "http://dev-doc.igandan.com/app/"
// static readonly urlImage = "https://dev-doc.igandan.com/app/"
// static readonly urlExpert = "https://dev-app.igandan.com/app/expert/"
// static readonly wxUrl = "https://dev-wx.igandan.com/";
// static readonly polvId = "11";//保利威视学员id
static readonly urlExpertAPI = "https://dev-app.igandan.com/app/expertAPI/";
static readonly urlExpertApp = "https://dev-app.igandan.com/app/expertApp/"
static readonly urlHtml = "http://dev-doc.igandan.com/app/"
static readonly urlImage = "https://dev-doc.igandan.com/app/"
static readonly urlExpert = "https://dev-app.igandan.com/app/expert/"
static readonly wxUrl = "https://dev-wx.igandan.com/";
static readonly polvId = "11";//保利威视学员id
//正式环境
static readonly urlExpertAPI = "https://app.igandan.com/app/expertAPI/";
static readonly urlExpertApp = "http://app.igandan.com/app/expertApp/"
static readonly urlHtml = "http://doc.igandan.com/app/"
static readonly urlImage = "http://doc.igandan.com/app/"
static readonly urlExpert = "http://app.igandan.com/app/expert/"
static readonly wxUrl = "https://wx.igandan.com/";// 微信服务器地址
static readonly polvId = "21";//保利威视学员id
// static readonly urlExpertAPI = "https://app.igandan.com/app/expertAPI/";
// static readonly urlExpertApp = "http://app.igandan.com/app/expertApp/"
// static readonly urlHtml = "http://doc.igandan.com/app/"
// static readonly urlImage = "http://doc.igandan.com/app/"
// static readonly urlExpert = "http://app.igandan.com/app/expert/"
// static readonly wxUrl = "https://wx.igandan.com/";// 微信服务器地址
// static readonly polvId = "21";//保利威视学员id
static readonly getStartpage=BasicConstant.urlExpertApp + "startpage";
+5 -3
View File
@@ -8,6 +8,7 @@ import { CryptoJS } from '@ohos/crypto-js'
import { Base64Util } from './Base64Util';
import { ChangeUtil } from './ChangeUtil'
import { bundleManager} from '@kit.AbilityKit';
import { deviceInfo } from '@kit.BasicServicesKit';
interface HdRequestOptions {
baseURL?: string
}
@@ -27,7 +28,7 @@ export interface TimestampBean {
class HdHttp {
baseURL: string
osFullName: string = deviceInfo.marketName+'/'+ deviceInfo.osFullName;
constructor(options: HdRequestOptions) {
this.baseURL = options.baseURL || ''
}
@@ -44,7 +45,8 @@ class HdHttp {
// 开发者根据自身业务需要添加header字段
header: {
'Content-Type': 'application/json',
'sign':this.getSign(extraDatas)
'sign':this.getSign(extraDatas),
'User-Agent':this.osFullName
},
extraData:ChangeUtil.map2Json(extraDatas)
}
@@ -79,7 +81,7 @@ class HdHttp {
// 开发者根据自身业务需要添加header字段
// 开发者根据自身业务需要添加header字段
header: {
'Content-Type': 'application/json'
'Content-Type': 'application/json',
}
}