Explorar o código

更新首页产品名称

laiguoran %!s(int64=6) %!d(string=hai) anos
pai
achega
4ac657a855
Modificáronse 1 ficheiros con 10 adicións e 10 borrados
  1. 10 10
      modules/users/models/user_model.js

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

@@ -319,16 +319,16 @@ class UserModel extends BaseModel {
      * @return {version}
      * @return {version}
      */
      */
     async getVersionFromUpgrade(ssoId, compilationId){
     async getVersionFromUpgrade(ssoId, compilationId){
-        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 = '纵横公路养护造价(专业版)';
-         }
-         }*/
+        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;
         return version;
     }
     }