warning
This commit is contained in:
parent
47bbbf8b58
commit
a1c566d278
|
@ -99,28 +99,28 @@ func (s *StaffUser) From(m *model.StaffUser) {
|
||||||
s.PayeeAlipayAuthUrl = fmt.Sprintf("https://openauth.alipay.com/oauth2/publicAppAuthorize.htm?app_id=2021004108682468&scope=auth_user&state=%d&redirect_uri=https://e.batiao8.com/api/payment/auth/alipay", m.Id)
|
s.PayeeAlipayAuthUrl = fmt.Sprintf("https://openauth.alipay.com/oauth2/publicAppAuthorize.htm?app_id=2021004108682468&scope=auth_user&state=%d&redirect_uri=https://e.batiao8.com/api/payment/auth/alipay", m.Id)
|
||||||
s.PayeeAlipayAuthQrcode, _ = butil.CreateQrcodeBase64V2(s.PayeeAlipayAuthUrl, qrcode.Low, 300)
|
s.PayeeAlipayAuthQrcode, _ = butil.CreateQrcodeBase64V2(s.PayeeAlipayAuthUrl, qrcode.Low, 300)
|
||||||
|
|
||||||
tags := make([]*Tag, 0)
|
tags := make([]*Tag, 0) //| 'primary' | 'success' | 'info' | 'danger' | 'warning' | 'text'
|
||||||
payChannel := m.GetConfig().PayChannel
|
payChannel := m.GetConfig().PayChannel
|
||||||
if payChannel == "" {
|
if payChannel == "" {
|
||||||
tags = append(tags, &Tag{Name: "未填工资发放渠道", Type: "warning"})
|
tags = append(tags, &Tag{Name: "未填工资发放渠道", Type: "danger"})
|
||||||
} else {
|
} else {
|
||||||
if payChannel == model.StaffSalaryPaymentAlipay {
|
if payChannel == model.StaffSalaryPaymentAlipay {
|
||||||
tags = append(tags, &Tag{Name: "支付宝", Type: "success"})
|
tags = append(tags, &Tag{Name: "支付宝", Type: "success"})
|
||||||
} else {
|
} else {
|
||||||
tags = append(tags, &Tag{Name: "银行卡", Type: "success"})
|
tags = append(tags, &Tag{Name: "银行卡", Type: "info"})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if payee.BankName == "" || payee.BankCard == "" {
|
if payee.BankName == "" || payee.BankCard == "" {
|
||||||
tags = append(tags, &Tag{Name: "未填银行卡", Type: "warning"})
|
tags = append(tags, &Tag{Name: "未填银行卡", Type: "danger"})
|
||||||
}
|
}
|
||||||
if payee.AlipayUid == "" {
|
if payee.AlipayUid == "" {
|
||||||
tags = append(tags, &Tag{Name: "未绑支付宝", Type: "warning"})
|
tags = append(tags, &Tag{Name: "未绑支付宝", Type: "warning"})
|
||||||
}
|
}
|
||||||
if m.Phone == "" {
|
if m.Phone == "" {
|
||||||
tags = append(tags, &Tag{Name: "未填手机号", Type: "warning"})
|
tags = append(tags, &Tag{Name: "未填手机号", Type: "danger"})
|
||||||
}
|
}
|
||||||
if m.Idno == "" {
|
if m.Idno == "" {
|
||||||
tags = append(tags, &Tag{Name: "未填身份证号", Type: "warning"})
|
tags = append(tags, &Tag{Name: "未填身份证号", Type: "danger"})
|
||||||
}
|
}
|
||||||
|
|
||||||
s.Tags = tags
|
s.Tags = tags
|
||||||
|
|
Loading…
Reference in New Issue