getKlConfig(3, 'tout'); var_dump($data); } public function testKl() { $config = [ 'money'=>30, 'kl'=>0.2 ]; $data = ToutiaoNotifyService::instance()->checkKl($config['money'], $config['kl'], 50); var_dump($data); } public function testBack() { $userInfo = UserService::instance()->getUserModel()->getUserInfo(60063); $toutType = $adminConfig['callback_time_tout'] ?? AdminConstants::CALLBACK_TIME_ONCE_24; $check = ToutiaoNotifyService::instance()->checkCallbackTime($userInfo['subscribe_time'], $toutType)->data; $sToutChuanKey = CacheConstants::getCallbackLimitTout($userInfo['id']); echo $sToutChuanKey; } }