Merge branch 'feature/game_select_bug' of wmtx/platform into release

master
陈志 4 years ago committed by Gogs
commit ff23d13c54

@ -1029,6 +1029,10 @@ class FinanceController extends ThinkController
if (!empty(I("game_id"))) { if (!empty(I("game_id"))) {
$map['game_id'] = I("game_id"); $map['game_id'] = I("game_id");
} }
if(empty(I("game_id")) && !empty(I("game_name"))){
$map['game_name'] = array('like','%'.I("game_name").'%');;
}
if (!empty(I('user_account'))) { if (!empty(I('user_account'))) {
$map['user_account'] = array('like','%'.I("user_account").'%'); $map['user_account'] = array('like','%'.I("user_account").'%');
} }
@ -1096,7 +1100,10 @@ class FinanceController extends ThinkController
$totalMap['s.game_id'] = $map['game_id']; $totalMap['s.game_id'] = $map['game_id'];
unset($totalMap['game_id']); unset($totalMap['game_id']);
} }
if ($map['game_name']) {
$totalMap['s.game_name'] = $map['game_name'];
unset($totalMap['game_name']);
}
$totalData = D('spend')->totalGameStatistics($totalMap, false); $totalData = D('spend')->totalGameStatistics($totalMap, false);
$sumCash = $totalData['cash_count'] ?? 0; $sumCash = $totalData['cash_count'] ?? 0;

@ -32,7 +32,18 @@ class RepairController extends ThinkController {
'type' => 1 // 补单 'type' => 1 // 补单
]); ]);
$sp = $spend->where([
'pay_order_number' => $orderNo
])->find();
$rr = $spend->where(array('pay_order_number'=>$orderNo))->save(array('pay_game_status'=>1)); $rr = $spend->where(array('pay_order_number'=>$orderNo))->save(array('pay_game_status'=>1));
if ($sp['extend']) {
$spend->where([
'extend' => $sp['extend'],
'pay_status' => 1,
'user_id' => $sp['user_id']
])->save(array('pay_game_status' => 1));
}
//操作日志 //操作日志
addOperationLog(array( addOperationLog(array(
"op_type"=>1, "op_type"=>1,

@ -296,6 +296,11 @@
</if> </if>
</td> </td>
<td style="text-indent:0;"> <td style="text-indent:0;">
<?php
if (!(substr($data['pay_order_number'], 0, 3) == "PF_" &&
substr($data['pay_order_number'], -2) == '_1')) {
?>
<if condition="($data['pay_game_status'] eq 0 or $data['pay_game_status'] eq 2) and $data['pay_status'] eq 1"> <if condition="($data['pay_game_status'] eq 0 or $data['pay_game_status'] eq 2) and $data['pay_status'] eq 1">
<a class=" budan" href="javascript:void(0);" <a class=" budan" href="javascript:void(0);"
href-data="{$data.pay_order_number}" href-hhh="{:U('Repair/repairEdit')}" style="width:100%;">补单</a> href-data="{$data.pay_order_number}" href-hhh="{:U('Repair/repairEdit')}" style="width:100%;">补单</a>
@ -304,6 +309,8 @@
<span>补单</span> <span>补单</span>
</if> </if>
<?php }?>
<br /> <br />
<if condition="($data['pay_game_status'] eq 0 or $data['pay_game_status'] eq 2) and ($data['pay_status'] eq 0 or $data['pay_status'] eq 2)"> <if condition="($data['pay_game_status'] eq 0 or $data['pay_game_status'] eq 2) and ($data['pay_status'] eq 0 or $data['pay_status'] eq 2)">

@ -46,6 +46,7 @@ class GameApi {
if (isset($pay_data['deduction_amount']) && $pay_data['deduction_amount'] > 0) { if (isset($pay_data['deduction_amount']) && $pay_data['deduction_amount'] > 0) {
$pay_data['cost'] += $pay_data['deduction_amount']; $pay_data['cost'] += $pay_data['deduction_amount'];
} }
$pay_data['cost'] = number_format($pay_data['cost'], 2, '.', '');
$md5_sign = md5($pay_data['pay_order_number'].$pay_data['cost']."1".$pay_data['extend'].$game_data['game_key']); $md5_sign = md5($pay_data['pay_order_number'].$pay_data['cost']."1".$pay_data['extend'].$game_data['game_key']);
$data = array( $data = array(

Loading…
Cancel
Save