Просмотр исходного кода

feat: 修正 台账修订 不展示作废数据

caipin 6 дней назад
Родитель
Сommit
0e157ef77f
3 измененных файлов с 107 добавлено и 1 удалено
  1. 1 0
      .gitignore
  2. 1 1
      app/controller/weapp_revise_controller.js
  3. 105 0
      config/config.weapp.js

+ 1 - 0
.gitignore

@@ -20,3 +20,4 @@ temp
 /app/public/deal_bills/uploads
 /app/public/js/webCache
 views
+deploy

+ 1 - 1
app/controller/weapp_revise_controller.js

@@ -8,7 +8,7 @@ module.exports = app => {
         async index(ctx) {
             try {
                 const tenderId = ctx.params.id;
-                const show_revise_invalid = 1;
+                const show_revise_invalid = 0;
                 const ledgerRevise = await ctx.service.ledgerRevise.getReviseList(tenderId, show_revise_invalid);
                 ctx.body = { code: 0, msg: '', data: ledgerRevise };
             } catch (err) {

+ 105 - 0
config/config.weapp.js

@@ -0,0 +1,105 @@
+'use strict';
+/**
+ * 开发环境相关配置
+ *
+ * @author CaiAoLin
+ * @date 2017/8/29
+ * @version
+ */
+
+module.exports = appInfo => {
+    const config = {};
+    // 数据库配置
+    config.mysql = {
+        client: {
+            // host
+            host: '47.106.95.114',
+            // 端口号
+            port: '3306',
+            // 用户名
+            user: 'zh_caipin',
+            // 密码
+            password: 'Sc@)!(3850Calc',
+            // 数据库名
+            database: 'calculation',
+            multipleStatements: true,
+        },
+        // 是否加载到 app 上,默认开启
+        app: true,
+        // 是否加载到 agent 上,默认关闭
+        agent: false,
+    };
+    // 表名前缀
+    config.tablePrefix = 'zh_';
+
+    // redis设置
+    config.redis = {
+        client: {
+            host: '172.16.160.112',
+            port: '6698',
+            password: 'cld2#*%)ok',
+            db: '0',
+        },
+        agent: true,
+        version: '1.0.0',
+    };
+
+    // session配置
+    config.session = {
+        key: 'ZHC_SESS',
+        maxAge: 7 * 24 * 3600 * 1000, // 7天
+        httpOnly: true,
+        encrypt: true,
+        //renew: true, // session临近过期更新过期时间
+        rolling: true, // 每次都更新session有效期
+    };
+    // wx扫码登录
+    config.wxCode = {
+        appid: 'wx5320cd30cecdbd68',
+        appsecret: 'ca7c0dbd9e94dc3b1c3b0e73865743f4',
+    };
+
+    // 企业微信代开发模板信息(uat版本)
+    config.qywx = {
+        suiteID: 'dka00967439b7dcdad',
+        suiteSecret: 'w_i_VDjKcGquwWCZdpFEcxK52TvaI2z6eXvZB28Hm84',
+        token: 'ab0IV95Hm5exQ',
+        encodingAESKey: 'hNuILriaRQZYaNiUNCCyUphBO38N5VXkP135IsRAEDX',
+    };
+
+    config.hisOssPath = 'uat/';
+    config.stashOssPath = 'stash/uat/';
+    config.oss = {
+        clients: {
+            signPdf: {
+                bucket: 'measure-sign-pdf',
+            },
+            fujian: {
+                bucket: 'jiliang-qa',
+            },
+            his: {
+                bucket: 'jiliang-his',
+            }
+        },
+        default: {
+            accessKeyId: 'LTAIALMjBHOs9PLA',
+            accessKeySecret: 'HSnULQs87wAJhcziAdyRv3GZ4EYctc',
+            endpoint: 'oss-cn-shenzhen-internal.aliyuncs.com',
+            timeout: '60s',
+        },
+    };
+
+    config.fujianOssPath = 'https://jiliang-qa-oss-cdn.smartcost.com.cn/uat/';
+    config.fujianOssFolder = 'uat/';
+
+    config.syncUrl = 'https://jluat-sync.smartcost.com.cn/';
+
+    // 项目管理跳转路径
+    config.managementPath = 'https://pmuat.smartcost.com.cn';
+    config.managementProxyPath = 'https://pmuat.smartcost.com.cn';
+    config.table_depart = {
+        heavy: 100,
+        light: 10,
+    };
+    return config;
+};