|
|
@@ -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;
|
|
|
}
|
|
|
|