react_hsbc_teller 1.9.26 → 1.9.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/pages/video/video.jsx +24 -2
package/package.json
CHANGED
|
@@ -296,7 +296,7 @@ class Video extends Component {
|
|
|
296
296
|
saveLog = (val) => {
|
|
297
297
|
axios({
|
|
298
298
|
method: 'get',
|
|
299
|
-
baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.
|
|
299
|
+
baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.27&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
|
|
300
300
|
|
|
301
301
|
}).then(res => {
|
|
302
302
|
|
|
@@ -2751,6 +2751,9 @@ class Video extends Component {
|
|
|
2751
2751
|
clearStreamRemain()
|
|
2752
2752
|
this.test_controller.LeaveRoom()
|
|
2753
2753
|
this.test_controller.Disconnect()
|
|
2754
|
+
setTimeout(() => {
|
|
2755
|
+
this.saveLocalLog();
|
|
2756
|
+
}, 500);
|
|
2754
2757
|
try {
|
|
2755
2758
|
beautySetMode('none');
|
|
2756
2759
|
beautyStop();
|
|
@@ -2956,7 +2959,7 @@ class Video extends Component {
|
|
|
2956
2959
|
}
|
|
2957
2960
|
}
|
|
2958
2961
|
componentWillMount() {
|
|
2959
|
-
console.log('hsbc_teller_sdk', '1.9.
|
|
2962
|
+
console.log('hsbc_teller_sdk', '1.9.27')
|
|
2960
2963
|
let arr = []
|
|
2961
2964
|
for(let i=1;i<=12;i++){
|
|
2962
2965
|
arr.push({
|
|
@@ -3051,6 +3054,25 @@ class Video extends Component {
|
|
|
3051
3054
|
return true
|
|
3052
3055
|
}
|
|
3053
3056
|
};
|
|
3057
|
+
// 保存日志
|
|
3058
|
+
saveLocalLog = () => {
|
|
3059
|
+
const dat = new Date();
|
|
3060
|
+
//格式化时间
|
|
3061
|
+
const year = dat.getFullYear();
|
|
3062
|
+
const mon = (dat.getMonth()+1) < 10 ? "0"+(dat.getMonth()+1) : dat.getMonth()+1;
|
|
3063
|
+
const day = dat.getDate() < 10 ? "0"+(dat.getDate()) : dat.getDate();
|
|
3064
|
+
const hour = dat.getHours() < 10 ? "0"+(dat.getHours()) : dat.getHours();
|
|
3065
|
+
const min = dat.getMinutes() < 10 ? "0"+(dat.getMinutes()) : dat.getMinutes();
|
|
3066
|
+
const sec = dat.getSeconds() < 10 ? "0"+(dat.getSeconds()) : dat.getSeconds();
|
|
3067
|
+
|
|
3068
|
+
const newDate = year +""+ mon +""+ day +"_"+ hour +""+ min +""+ sec;
|
|
3069
|
+
try {
|
|
3070
|
+
this.test_controller.DownloadLog('Log_'+ this.props.sessionId + '_' + newDate);
|
|
3071
|
+
} catch(err) {
|
|
3072
|
+
console.log('当前SDK版本暂不支持保存本地日志,请更新后重试')
|
|
3073
|
+
// this.messageClick('当前SDK版本暂不支持,请更新后重试', 'error')
|
|
3074
|
+
}
|
|
3075
|
+
}
|
|
3054
3076
|
cameraClick = () => {
|
|
3055
3077
|
if (this.isFileSuccuse()) {
|
|
3056
3078
|
if (!this.state.audioed) {
|