Commit 4e886f13 by 王悦

fix md5

parent d33c125e
const system = require("../system"); const system = require("../system");
const settings = require("../../config/settings.js"); const settings = require("../../config/settings.js");
const reclient = system.getObject("util.redisClient"); const reclient = system.getObject("util.redisClient");
const md5 = require("MD5"); const md5 = require("md5");
var dbf = system.getObject("db.common.connection"); var dbf = system.getObject("db.common.connection");
var db = dbf.getCon(); var db = dbf.getCon();
db.sync({ force: true }).then(async () => { db.sync({ force: true }).then(async () => {
......
...@@ -11,7 +11,7 @@ class ServiceBase { ...@@ -11,7 +11,7 @@ class ServiceBase {
this.daoName = daoName; this.daoName = daoName;
this.dao = system.getObject("db." + gname + "." + daoName); this.dao = system.getObject("db." + gname + "." + daoName);
this.restS = system.getObject("util.restClient"); this.restS = system.getObject("util.restClient");
this.md5 = require("MD5"); this.md5 = require("md5");
this.execClient = system.getObject("util.execClient"); this.execClient = system.getObject("util.execClient");
this.appInfo = { this.appInfo = {
aliyuntmtransfer: { appkey: "202003231118", secret: "7cbb846246874167b5c7e01cd0016c99" } aliyuntmtransfer: { appkey: "202003231118", secret: "7cbb846246874167b5c7e01cd0016c99" }
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@alicloud/pop-core": "^1.7.7", "@alicloud/pop-core": "^1.7.7",
"MD5": "1.3.0", "md5": "^2.3.0",
"after": "^0.8.2", "after": "^0.8.2",
"ali-oss": "^4.12.2", "ali-oss": "^4.12.2",
"amqplib": "^0.8.0", "amqplib": "^0.8.0",
......
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