Browse Source

是否展示开票

renjiaojiao 1 year ago
parent
commit
3537132ad9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/jfw/modules/subscribepay/src/service/invoice.go

+ 3 - 0
src/jfw/modules/subscribepay/src/service/invoice.go

@@ -1401,6 +1401,9 @@ func IsAllowInvoice(res map[string]interface{}) bool {
 	if qutil.IntAll(res["applybill_status"]) > 0 {
 		return false
 	}
+	if qutil.Float64All(res["pay_money"]) == 0 {
+		return false
+	}
 	filter := qutil.ObjToString(res["filter"].(string))
 	filter_map := map[string]interface{}{}
 	_ = json.Unmarshal([]byte(filter), &filter_map)