diff --git a/webapp/services/callback/BuyPassCbService.php b/webapp/services/callback/BuyPassCbService.php index bb5264c2..26446d32 100644 --- a/webapp/services/callback/BuyPassCbService.php +++ b/webapp/services/callback/BuyPassCbService.php @@ -114,6 +114,23 @@ class BuyPassCbService ) ); $this->_updatePassData($userDbNew); + $this->_updateDynData($userDbNew); + } + + private function _updateDynData($user){ + SqlHelper::update + ( myself()->_getMysql($user['address']), + 't_dyndata', + array( + 'account_id' => $user['account_id'], + 'x' => TN_DAILY_BUY_LEVEL_STATE, + 'y' => 0 + ), + array( + 'val' => 0, + 'modifytime' => myself()->_getNowTime() + ) + ); } private function _updatePassData($user){