|
|
|
@ -1996,7 +1996,7 @@ function get_default_payment_config($way=1) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 获取支付配置 way 1 支付宝 2微信 3快捷
|
|
|
|
|
function get_payment_config($way=1, $game=0, $user_id=0, $pay_amount = 0, $isPlatform = false) {
|
|
|
|
|
function get_payment_config($way=1, $game=0, $user_id=0, $pay_amount = 0, $skipOuterPay = false) {
|
|
|
|
|
$time = time();
|
|
|
|
|
$company = get_promote_company($user_id);
|
|
|
|
|
|
|
|
|
@ -2020,7 +2020,7 @@ function get_payment_config($way=1, $game=0, $user_id=0, $pay_amount = 0, $isPla
|
|
|
|
|
// $monthEnd = date('Y-m-d', strtotime(date('Y-m-01') . '+1 month -1 day'));
|
|
|
|
|
// $payAmountRow = M('spend','tab_')->field('SUM(pay_amount) as sum_amount')->where(array('pay_way'=>41, 'pay_real_status'=>1, 'payed_time' => ['gt', $monthBegin], 'payed_time' => ['lt', $monthEnd]))->find();
|
|
|
|
|
// $payAmount = intval($payAmountRow['sum_amount']);
|
|
|
|
|
if ($pay_amount >= 500 && !$isPlatform) {
|
|
|
|
|
if ($pay_amount >= 500 && !$skipOuterPay) {
|
|
|
|
|
return ['code' => 0, 'msg' => '', 'data' => ['id' => 3, 'channel' => 11, 'config' => '{}']];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|