Commit b0542edd by linboxuan

ucommune-back operate api

parent 344da171
......@@ -32,12 +32,9 @@ class UtilsUcommuneService extends AppServiceBase {
* @param {*} actionBody
*/
async getTrend(pobj, actionBody) {
var obj = {
date : ["1"],
pay : [0,1,2,3,4,5,6,7,8,9,0,1,2],
need : [0,1,2,3,4,5,6,7,8,9,0,1,2]
}
return system.getResultSuccess(obj);
var reqUrl = this.centerOrderUrl + "action/ucommuneOrder/springBoard";
var result = await this.restPostUrl(pobj, reqUrl);
return result;
}
/**
......
......@@ -27,7 +27,7 @@ module.exports = function (app) {
app.all('*', function (req, res, next) {
req.objs = system;
res.header('Access-Control-Allow-Origin', '*');
res.header('Access-Control-Allow-Headers', 'Content-Type, Content-Length, Authorization, Accept, X-Requested-With , yourHeaderFeild');
res.header('Access-Control-Allow-Headers', 'Content-Type, Content-Length, Authorization, Accept, X-Requested-With , yourHeaderFeild, Authorization, XAPPKEY, XFROMAPPKEY, XFROMCOMPANYKEY, XREGROLE, XBIZPATH');
res.header('Access-Control-Allow-Methods', 'PUT, POST, GET, DELETE, OPTIONS');
// res.header('Access-Control-Allow-Credentials', 'true');
res.header('content-type', 'text/html;charset=UTF-8');
......
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