...
This commit is contained in:
parent
6bd7417b0c
commit
4de8636da4
@ -44,7 +44,7 @@ class LogService extends BaseService
|
||||
|
||||
public static function consumeGold($event,$param = [])
|
||||
{
|
||||
$logInfo = self::goldRecord();
|
||||
$logInfo = self::goldRecord($param);
|
||||
$data = self::userInfo();
|
||||
$data['type'] = self::CONSUME_TYPE;
|
||||
$data['event_name'] = $event['name'];
|
||||
@ -74,7 +74,7 @@ class LogService extends BaseService
|
||||
|
||||
public static function productGold($event,$param = [])
|
||||
{
|
||||
$logInfo = self::goldRecord();
|
||||
$logInfo = self::goldRecord($param);
|
||||
$data = self::userInfo();
|
||||
$data['type'] = self::PRODUCT_TYPE;
|
||||
$data['event_name'] = $event['name'];
|
||||
@ -139,12 +139,16 @@ class LogService extends BaseService
|
||||
);
|
||||
return $info;
|
||||
}
|
||||
private static function goldRecord()
|
||||
private static function goldRecord($params = [])
|
||||
{
|
||||
$account_id = $params['account_id'];
|
||||
if (empty($account_id)) {
|
||||
$account_id = myself()->_getAccountId();
|
||||
}
|
||||
// $logInfo['log_class'] = $logInfo['log_class'];
|
||||
// unset($logInfo['log_class']);
|
||||
$data = array(
|
||||
"#account_id" => myself()->_getAccountId(),
|
||||
"#account_id" => $account_id,
|
||||
"#event_name"=> "gold_record",
|
||||
"#ip"=> $_SERVER['REMOTE_ADDR'],
|
||||
"#time"=> myself()->_getNowTime(),
|
||||
|
@ -126,7 +126,7 @@ class GameItemMarketBuyOk
|
||||
'name' => LogService::MARKET_BUY_GOLD,
|
||||
'val' => $goods['amount']
|
||||
];
|
||||
LogService::productGold($event);
|
||||
LogService::productGold($event, ['account_id' => $address]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user