|
|
|
@ -310,11 +310,12 @@ class WapPayController extends BaseController{
|
|
|
|
|
|
|
|
|
|
$payInfo = M('pay_info', 'tab_')->where(array(
|
|
|
|
|
'user_id' => $param['user_id'],
|
|
|
|
|
'game_id' => $param['game_id']
|
|
|
|
|
'game_id' => $param['game_id'],
|
|
|
|
|
'extend' => $param['extend']
|
|
|
|
|
))->order('id desc')->find();
|
|
|
|
|
$info = json_decode($payInfo['info'], true);
|
|
|
|
|
// $info = json_decode($payInfo['info'], true);
|
|
|
|
|
$deposit = M('deposit', 'tab_')->where([
|
|
|
|
|
'pay_order_number' => $info['pay_order_number']
|
|
|
|
|
'pay_order_number' => $payInfo['order_id']
|
|
|
|
|
])->find();
|
|
|
|
|
if ($deposit['pay_amount'] != $payInfo['price']) {
|
|
|
|
|
$this->error($deposit['pay_amount']."数据有误.".$payInfo['price'], '', true);
|
|
|
|
@ -685,6 +686,7 @@ class WapPayController extends BaseController{
|
|
|
|
|
$this->assign("pay_amount", $request['actual_amount']?$request['actual_amount']:$request['price']);
|
|
|
|
|
$this->assign("user_id", $request['user_id']);
|
|
|
|
|
$this->assign("game_id", $request['game_id']);
|
|
|
|
|
$this->assign("extend", $is_platform ? $request['pay_order_number'] : I('extend'));
|
|
|
|
|
$this->display();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|