金柚静态 支付修改8

This commit is contained in:
“wanyongkang”
2024-02-02 18:50:41 +08:00
parent 67d27f6956
commit 9c173413b0
2 changed files with 5 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ class Account extends Model
'CreateTime' => date('Y-m-d H:i:s',time()),
'UpdateTime' => date('Y-m-d H:i:s',time()),
'DeleteTag' => 0,
'Remark' => $account->region.$account->address,
'Remark' => $account->region . $account->address,
'Raw' => $account->inlet_website,
'game_id' => $account->game_id,
];

View File

@@ -15,7 +15,10 @@ class UserPrice extends Model
//根据用户价格
if ($discount != 0) {
if ($discount == -1) {
$price = $this->getOne(['UserId' => $user_id,'PackageId' => $package_info['Id']])['UserPrice'];
$user_price = $this->getOne(['UserId' => $user_id,'PackageId' => $package_info['Id']]);
if (isset($user_price['UserPrice'])) {
$price = $user_price['UserPrice'];
}
} else {
$scheme_model = new PriceScheme;
$discount = $scheme_model->getone(['Id' => $discount])['discount'];