From a1c566d278173391d458f1f55886ce0cc1883f4a Mon Sep 17 00:00:00 2001 From: jiangyong27 Date: Thu, 3 Apr 2025 12:23:35 +0800 Subject: [PATCH] warning --- server/api/staff.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/server/api/staff.go b/server/api/staff.go index cac90ce..6ffa25b 100644 --- a/server/api/staff.go +++ b/server/api/staff.go @@ -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.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 if payChannel == "" { - tags = append(tags, &Tag{Name: "未填工资发放渠道", Type: "warning"}) + tags = append(tags, &Tag{Name: "未填工资发放渠道", Type: "danger"}) } else { if payChannel == model.StaffSalaryPaymentAlipay { tags = append(tags, &Tag{Name: "支付宝", Type: "success"}) } else { - tags = append(tags, &Tag{Name: "银行卡", Type: "success"}) + tags = append(tags, &Tag{Name: "银行卡", Type: "info"}) } } if payee.BankName == "" || payee.BankCard == "" { - tags = append(tags, &Tag{Name: "未填银行卡", Type: "warning"}) + tags = append(tags, &Tag{Name: "未填银行卡", Type: "danger"}) } if payee.AlipayUid == "" { tags = append(tags, &Tag{Name: "未绑支付宝", Type: "warning"}) } if m.Phone == "" { - tags = append(tags, &Tag{Name: "未填手机号", Type: "warning"}) + tags = append(tags, &Tag{Name: "未填手机号", Type: "danger"}) } if m.Idno == "" { - tags = append(tags, &Tag{Name: "未填身份证号", Type: "warning"}) + tags = append(tags, &Tag{Name: "未填身份证号", Type: "danger"}) } s.Tags = tags