金柚静态 支付修改9

This commit is contained in:
“wanyongkang”
2024-02-02 19:18:34 +08:00
parent 9c173413b0
commit 807e3386d9

View File

@@ -23,7 +23,7 @@ class Account extends Model
$package_origin = explode('-',$package_info['OriginKey']);
$api_data = $jinyou::createStatic($package_origin['3'],$account_info['game_id'],$account_info['account'],$account_info['password'],$account_info['buy_num'],121,$package_origin['0'],$package_origin['1'],$package_origin['2'],'',$account_info['product_info']);
$account_list = [];
if ($api_data->code == 200) {
$account_enum = new AccountEnum;
@@ -36,7 +36,7 @@ class Account extends Model
}
foreach ($api_data->data as $account) {
$account = [
$accounts = [
'TenantId' => 0,
'UserId' => $user_info['Id'],
'UserCode' => $user_info['LoginCode'],
@@ -59,7 +59,7 @@ class Account extends Model
'Raw' => $account->inlet_website,
'game_id' => $account->game_id,
];
$account_list[] = $account;
$account_list[] = $accounts;
}
$this->addAll($account_list);
$return_data['code'] = 1;