paychannel2
This commit is contained in:
parent
e39b14a4df
commit
2308020660
|
@ -100,11 +100,21 @@ func (s *StaffUser) From(m *model.StaffUser) {
|
|||
s.PayeeAlipayAuthQrcode, _ = butil.CreateQrcodeBase64V2(s.PayeeAlipayAuthUrl, qrcode.Low, 300)
|
||||
|
||||
tags := make([]*Tag, 0)
|
||||
if payee.BankName != "" && payee.BankCard != "" {
|
||||
payChannel := m.GetConfig().PayChannel
|
||||
if payChannel == "" {
|
||||
tags = append(tags, &Tag{Name: "未填工资发放渠道", Type: "warning"})
|
||||
} else {
|
||||
if payChannel == model.StaffSalaryPaymentAlipay {
|
||||
tags = append(tags, &Tag{Name: "支付宝", Type: "success"})
|
||||
} else {
|
||||
tags = append(tags, &Tag{Name: "银行卡", Type: "success"})
|
||||
}
|
||||
if payee.AlipayUid != "" {
|
||||
tags = append(tags, &Tag{Name: "支付宝", Type: "success"})
|
||||
}
|
||||
if payee.BankName == "" || payee.BankCard == "" {
|
||||
tags = append(tags, &Tag{Name: "未填银行卡", Type: "warning"})
|
||||
}
|
||||
if payee.AlipayUid == "" {
|
||||
tags = append(tags, &Tag{Name: "未绑支付宝", Type: "warning"})
|
||||
}
|
||||
if m.Phone == "" {
|
||||
tags = append(tags, &Tag{Name: "未填手机号", Type: "warning"})
|
||||
|
|
Loading…
Reference in New Issue