getPlatformId())) return; $oTableWalletPlatformCache = new TableWalletPlatformCache(); $aWalletPlatform= $oTableWalletPlatformCache->get($bean->getPlatformId()); if(empty($aWalletPlatform)) return; $oWalletPlatformBean = new WalletPlatformBean($aWalletPlatform); if(empty($oWalletPlatformBean->getNotifyIp())) return; //通知到平台 $oHttpService = new \App\Service\HttpService(); $HttpServiceConfigBean = new HttpServiceConfigBean(); $HttpServiceConfigBean->setIsReturnJson(false); //返回不格式化json $res = $oHttpService->post($oWalletPlatformBean->getNotifyIp(),$bean->toArrayNotNull(),$HttpServiceConfigBean); if($res !== self::RETURN_SUCCESS){ //通知失败 throw new PlatformNotifyException('notify to platform failed'); } Logs::SuccLog(__FUNCTION__, $bean->toArrayNotNull()); }catch (\Exception $e) { Logs::ErrLog(__FUNCTION__, $e, $bean->toArrayNotNull()); $bean->IncrTryTimes(); if (!$bean->checkTryTimes()) { //超出重试次数 return; } WalletNotifyToPlatformQueue::putToQueue($bean, $bean->getTryTimes()); } } }