|
@@ -2536,10 +2536,15 @@ async function isTenderOverrun(tenderCount, session) {
|
|
|
return tenderCount + curTenderCount > limit;
|
|
|
}
|
|
|
|
|
|
-async function getWelcomeInfo(compilationId,sessionUser) {
|
|
|
- let setting = await welcomeModel.findOne({compilationId:compilationId});
|
|
|
+async function getWelcomeInfo(compilationId,sessionUser,isFree=true) {
|
|
|
+ let welcom_setting = await welcomeModel.findOne({compilationId:compilationId});
|
|
|
let isShow = false;
|
|
|
let context = "";
|
|
|
+ let setting = null
|
|
|
+ if(welcom_setting){
|
|
|
+ setting = isFree? welcom_setting.normal:welcom_setting.professional;//区分专业版和免费版
|
|
|
+ }
|
|
|
+
|
|
|
if(setting){
|
|
|
if(setting.showType == 0) return [false,""];//关闭
|
|
|
context = setting.context;
|