Commit e476cdb9 by 王昆

gsb

parent d28d973d
xgg-web/node_modules/
.idea/*
\ No newline at end of file
......@@ -5,7 +5,7 @@ var path = require('path');
var http = require("http");
var request = require('request');
class AppletBase {
constructor() {
constructor(config) {
this.db = system.getObject("db.connection").getCon();
this.cacheManager = system.getObject("db.cacheManager");
this.redisClient = system.getObject("util.redisClient");
......@@ -14,10 +14,10 @@ class AppletBase {
// appid: "wx3fa4626b74d1e944",
// secret: "238cdac5b7d3102a367e2eafc0eaa5da"
// };
this.wxConfig = {
appid: "wx427b4e988444908f",
secret: "3d092eb22c3451618a9c0656b1861ac6"
};
if(!config) {
throw new Error("请传入小程序appid和secret配置");
}
this.wxConfig = config;
}
async code2Session(obj, req) {
......
......@@ -9,7 +9,10 @@ const moment = require("moment");
class xggApplet extends AppletBase {
constructor() {
super();
super({
appid: "wx427b4e988444908f",
secret: "3d092eb22c3451618a9c0656b1861ac6"
});
this.bmuserSve = system.getObject("service.bmuserSve");
this.bmuserbizSve = system.getObject("service.bmuserbizSve");
this.bmmerchantSve = system.getObject("service.bmmerchantSve");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment