Commit 6a3a4d08 by 王昆

gsb

parent d955be85
......@@ -136,11 +136,18 @@ class SaasChannelService extends ServiceBase {
if(term_end) {
channel.term_end = term_end;
}
if(term == 1) {
channel.term_end = null;
}
channel.validity = validity;
if(validity_end) {
channel.validity_end = validity_end;
}
if(validity == 1) {
channel.validity_end = null;
}
if (channel.id) {
await channel.save();
......
......@@ -167,10 +167,16 @@ class SaasMerchantService extends ServiceBase {
if(term_end) {
merchant.term_end = term_end;
}
if(term == 1) {
merchant.term_end = null;
}
merchant.validity = validity;
if(validity_end) {
merchant.validity_end = validity_end;
}
if(validity == 1) {
merchant.validity_end = null;
}
let self = this;
if (merchant.id) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment