肝胆视频

This commit is contained in:
XiuYun CHEN
2025-05-27 13:15:22 +08:00
parent 3bdbf49577
commit 5375c26462
32 changed files with 720 additions and 20 deletions
@@ -30,5 +30,9 @@ export class BasicConstant {
static readonly videoByTypeNew = BasicConstant.urlExpertApp + 'videoByTypeNew'
static readonly videoDetail = BasicConstant.urlExpertAPI + "videoDetail";
static readonly meetingHistoryList = BasicConstant.urlExpertAPI + "meetingHistoryList";
static readonly videoRoll = BasicConstant.urlExpertAPI + "videoRoll";
static readonly expertVideoTypeList = BasicConstant.urlExpertAPI + "expertVideoTypeList";
static readonly videoByKeyWordsNew = BasicConstant.urlExpertApp + "videoByKeyWordsNew";
static readonly tagList = BasicConstant.urlExpertApp + "tagList";
}
@@ -6,6 +6,7 @@ import image from '@ohos.multimedia.image';
import fs from '@ohos.file.fs';
import { fileIo } from '@kit.CoreFileKit';
import util from '@ohos.util';
import { i18n } from '@kit.LocalizationKit';
export class ChangeUtil {
/**
* 将HashMap转成JsonString
@@ -132,4 +133,14 @@ export class ChangeUtil {
}
}
static isLetter(char: string): boolean {
if (char.length !== 1) return false;
const code = char.charCodeAt(0);
return (code >= 65 && code <= 90) || (code >= 97 && code <= 122);
}
static isFirstDigit(str: string): boolean {
if (str.length === 0) return false;
return i18n.Unicode.isDigit(str.charAt(0));
}
}
@@ -52,6 +52,7 @@ class HdHttp {
return httpInstance.request(fullUrl, options).then((res) => {
logger.info('Response param'+JSON.stringify(extraDatas))
logger.info('Response fullUrl:' +fullUrl+ res.result);
const result = res.result as HdResponse<T>
return result