1
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user