Commit de85feb4 by 兰国旗

Merge branch 'center-channel' of gitlab.gongsibao.com:jiangyong/zhichan into center-channel

parents 5b100856 a4e90837
var APIBase = require("../../api.base"); var APIBase = require("../../api.base");
var system = require("../../../system"); var system = require("../../../system");
var settings = require("../../../../config/settings"); var settings = require("../../../../config/settings");
const axios = require("axios");
class edi extends APIBase { class edi extends APIBase {
constructor() { constructor() {
super(); super();
...@@ -11,6 +12,18 @@ class edi extends APIBase { ...@@ -11,6 +12,18 @@ class edi extends APIBase {
} }
async create(pobj,query,req) { async create(pobj,query,req) {
if(settings.env != "dev") {
axios.post('https://oapi.dingtalk.com/robot/send?access_token=2995a6336bbddb3a4704fdb201ad244784e625b8af7ac5f0877c86e5a58ae164',{
msgtype: 'text',
text:{
content: "磐农来服务单啦!" + JSON.stringify(pobj)
},
at: {
atMobiles: ["13911391996"]
},
isAtAll:false
})
}
console.log(pobj); console.log(pobj);
this.logCtl.info({ this.logCtl.info({
op: "service/impl/utilsSve/service.js/create", op: "service/impl/utilsSve/service.js/create",
......
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