|
@@ -140,7 +140,7 @@ class Money extends Common
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- $this->rebate($user_id, $amount);
|
|
|
+ //$this->rebate($user_id, $amount);
|
|
|
|
|
|
// +EXP
|
|
|
\app\common\model\TaskLog::tofinish($user_id, "5EMwg7la", 1);
|
|
@@ -1125,6 +1125,7 @@ class Money extends Common
|
|
|
}
|
|
|
$list = \app\common\model\RecharConfig::where($where)->order("weight", "asc")->select();
|
|
|
if (!$list) $this->error("配置信息为空!");
|
|
|
+
|
|
|
foreach ($list as $k => $v) {
|
|
|
$money = $v["money"] / 100;
|
|
|
$list[$k]["money"] = $money;
|
|
@@ -1159,6 +1160,16 @@ class Money extends Common
|
|
|
$list[$k]["jewel"] = (int)$v["jewel"];
|
|
|
$list[$k]["money"] = $v["money"] / 100;
|
|
|
}
|
|
|
+ //设置是否使用自定义
|
|
|
+ $rechargeDefine = config('site.exchange_define');
|
|
|
+ if ($rechargeDefine == 1) {
|
|
|
+ $fieldArr = [[
|
|
|
+ 'id' => -1,
|
|
|
+ 'jewel' => 0,
|
|
|
+ 'money' => 0.00,
|
|
|
+ ],];
|
|
|
+ $list = array_merge($list,$fieldArr);
|
|
|
+ }
|
|
|
$this->success("获取成功!", $list);
|
|
|
}
|
|
|
|
|
@@ -1530,7 +1541,7 @@ class Money extends Common
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- $this->rebate($user_id, $amount);
|
|
|
+ //$this->rebate($user_id, $amount);
|
|
|
|
|
|
// +EXP
|
|
|
\app\common\model\TaskLog::tofinish($user_id, "5EMwg7la", 1);
|
|
@@ -1544,7 +1555,7 @@ class Money extends Common
|
|
|
}
|
|
|
|
|
|
// 查询新人礼包
|
|
|
- $this->addBagGift($user_id, $amount);
|
|
|
+ //$this->addBagGift($user_id, $amount);
|
|
|
|
|
|
$this->success("购买成功!");
|
|
|
}
|