Commit b0542edd by linboxuan

ucommune-back operate api

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