|
@@ -137,8 +137,10 @@ func (userDoc *UserDoc) DocBuy() {
|
|
totalLimit := config.JyDocsAppConfig.DocMember.FreeDocLimit
|
|
totalLimit := config.JyDocsAppConfig.DocMember.FreeDocLimit
|
|
if docMemberStatus {
|
|
if docMemberStatus {
|
|
totalLimit = config.JyDocsAppConfig.DocMember.Times
|
|
totalLimit = config.JyDocsAppConfig.DocMember.Times
|
|
|
|
+ surplus = totalLimit - use
|
|
|
|
+ } else {
|
|
|
|
+ surplus = totalLimit - douding
|
|
}
|
|
}
|
|
- surplus = totalLimit - use
|
|
|
|
if surplus <= 0 {
|
|
if surplus <= 0 {
|
|
surplus = 0
|
|
surplus = 0
|
|
use = totalLimit
|
|
use = totalLimit
|