提交 9565dbb9 作者: wangjin

* 登录接口返回session_key修改为login_code

 *  增加reverseStr接口
上级 7138ecbc
/** /**
* 鲸鱼游戏微信小游戏接入库 * 鲸鱼游戏微信小游戏接入库
* @author 推广技术部 * @author 推广技术部
* @time: 2022-02-15 * @time: 2022-06-27
* *
* 登录接口新增 user_status * 登录接口返回session_key修改为login_code
* *
*/ */
class WechatSDK { class WechatSDK {
...@@ -101,7 +101,7 @@ class WechatSDK { ...@@ -101,7 +101,7 @@ class WechatSDK {
return { return {
...filters, ...filters,
os: this.SDKCOMMDATA["os"], // 返回系统类型IOS或者android os: this.SDKCOMMDATA["os"], // 返回系统类型IOS或者android
session_key: this.LoginData["session_key"], // 返回session_key login_code: this.reverseStr(this.LoginData["session_key"]), // 返回session_key
scene: this.LaunchOptions["scene"], // 用户来源场景值 scene: this.LaunchOptions["scene"], // 用户来源场景值
from_appid: this.LaunchOptions["appId"] || this.LaunchOptions["appid"], from_appid: this.LaunchOptions["appId"] || this.LaunchOptions["appid"],
launchOptions: this.LaunchOptions, launchOptions: this.LaunchOptions,
...@@ -634,6 +634,11 @@ class WechatSDK { ...@@ -634,6 +634,11 @@ class WechatSDK {
} }
}); });
}; };
public reverseStr = (str: string) => {
let newStr = "";
for (let i = str.length - 1; i >= 0; i--) newStr += str[i];
return newStr;
}
private showLoading() { private showLoading() {
(wx as any).showLoading({ (wx as any).showLoading({
title: "请稍候..", title: "请稍候..",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论