# encryptRequestParams
加密用户ID
# 请求参数
Prop | Type | Required | Default | Description |
---|---|---|---|---|
text | String | Y | 需要加密的ID | |
isLogin | String | Y | 是否登录 |
# 接口请求示例
nativeService.encryptRequestParams({
text: this.msgData.messageBody.extras.userId,
isLogin: '1'
});
# 返回参数
Prop | Type | Default | Description |
---|---|---|---|
data | Object | 返回体 | |
encryptText | String | 加密后ID |
# 接口返回示例
nativeService
.encryptRequestParams({
text: this.msgData.messageBody.extras.userId,
isLogin: '1'
})
.then((res) => {
const userId = res.data.encryptText || '';
this.shareResponse(userId, index);
})
.catch((err) => {
this.$bridge.hideLoading();
const message = err.errorMessage || err.msg;
this.$bridge.toast(message);
});