This commit is contained in:
邹宗楠
2026-01-16 21:57:22 +08:00
parent 0a8a2ef523
commit a0fed83084
13 changed files with 58209 additions and 57693 deletions

View File

@@ -876,6 +876,28 @@ func GetVendorStore(ctx *jxcontext.Context, vendorID int, vendorOrgCode, vendorS
return nil, err
}
// QueryPlatformBalance 获取三方配送平台账号余额
func QueryPlatformBalance(vendorID int) (int64, error) {
handlerInfo := partner.GetDeliveryPlatformFromVendorID(vendorID)
if handlerInfo.Handler != nil {
return handlerInfo.Handler.GetPlatformBalance()
}
return 0, fmt.Errorf("vendorId 解析异常")
}
// BalanceRecharge 三方配送平台账号余额充值
func BalanceRecharge(vendorID int, param *utils.RechargeBalance) (string, error) {
handlerInfo := partner.GetDeliveryPlatformFromVendorID(vendorID)
if handlerInfo.Handler != nil {
return handlerInfo.Handler.BalanceRecharge(&utils.RechargeBalance{
Amount: param.Amount,
Category: param.Category,
NotifyUrl: param.NotifyUrl,
})
}
return "", fmt.Errorf("vendorId 解析异常")
}
func isUpdateStoreNeedSync(valid map[string]interface{}) bool {
for k := range valid {
if storeKeyPropertyMap[k] == 1 {