http 自助充值2

This commit is contained in:
“wanyongkang”
2024-01-02 16:25:23 +08:00
parent 5c159b75cf
commit a56bc63aa8
2 changed files with 4 additions and 4 deletions

View File

@@ -111,7 +111,7 @@ class Order extends Controller
$recharge_data['user_id'] = $this->userinfo['UserId']; $recharge_data['user_id'] = $this->userinfo['UserId'];
//判断充值的金额是否在赠送列表里 //判断充值的金额是否在赠送列表里
if (array_key_exists($recharge_data['pay_money'],$this->ju_zhengsong)){ if ((!is_float($recharge_data['pay_money'])) && array_key_exists($recharge_data['pay_money'],$this->ju_zhengsong)){
$recharge_data['ju_money'] = $this->ju_zhengsong[$data['money']]; $recharge_data['ju_money'] = $this->ju_zhengsong[$data['money']];
} else { } else {
$recharge_data['ju_money'] = $data['money']; $recharge_data['ju_money'] = $data['money'];

View File

@@ -5,7 +5,7 @@
* @Author: kangkang * @Author: kangkang
* @Date: 2020-09-30 17:32:46 * @Date: 2020-09-30 17:32:46
* @LastEditors: “wanyongkang” “937888580@qq.com” * @LastEditors: “wanyongkang” “937888580@qq.com”
* @LastEditTime: 2023-11-29 13:57:52 * @LastEditTime: 2024-01-02 16:24:22
*/ */
return [ return [
@@ -28,7 +28,7 @@ return [
'port' => 3306, 'port' => 3306,
'dbname' => 'hualianyun', 'dbname' => 'hualianyun',
'username' => 'root', 'username' => 'root',
'password' => '123456789', 'password' => 'qaz123!@#',
], ],
// 线上数据库连接 // 线上数据库连接
'formal_db' => [ 'formal_db' => [
@@ -36,7 +36,7 @@ return [
'port' => 3306, 'port' => 3306,
'dbname' => 'hualianyun', 'dbname' => 'hualianyun',
'username' => 'root', 'username' => 'root',
'password' => '123456789', 'password' => 'qaz123!@#',
], ],
//线上地址 //线上地址
'formal_origin' => [ 'formal_origin' => [