Browse Source

专业或者免费都统一叫云版

zhangweicheng 6 years ago
parent
commit
9c8404252c
1 changed files with 10 additions and 10 deletions
  1. 10 10
      modules/users/models/user_model.js

+ 10 - 10
modules/users/models/user_model.js

@@ -249,16 +249,16 @@ class UserModel extends BaseModel {
      * @return {version}
      */
     async getVersionFromUpgrade(ssoId, compilationId){
-        let version = '纵横公路养护造价(免费云版)';
-        let userData = await this.findDataBySsoId(ssoId);
-        if (userData.upgrade_list !== undefined) {
-            let compilationInfo = userData.upgrade_list.find(function (item) {
-                return item.compilationID === compilationId;
-            });
-            if (compilationInfo !== undefined && compilationInfo.isUpgrade === true) {
-                version = '纵横公路养护造价(专业云版)';
-            }
-        }
+        let version = '纵横公路养护造价(云版)';//'纵横公路养护造价(免费云版)'; 2019-03-28 需求修改,听说不知道多久的以后还会改回来--勿删!!!!!
+        /*let userData = await this.findDataBySsoId(ssoId);
+         if (userData.upgrade_list !== undefined) {
+         let compilationInfo = userData.upgrade_list.find(function (item) {
+         return item.compilationID === compilationId;
+         });
+         if (compilationInfo !== undefined && compilationInfo.isUpgrade === true) {
+         version = '纵横公路养护造价(专业云版)';
+         }
+         }*/
         return version;
     }