|
|
|
@ -80,16 +80,16 @@ class ExchangeController extends BaseController{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$role = M("user_play_info", "tab_")->where([
|
|
|
|
|
'user_id' => $request['user_id'],
|
|
|
|
|
'game_id' => $request['game_id'],
|
|
|
|
|
'server_id' => $request['server_id']
|
|
|
|
|
])->find();
|
|
|
|
|
if (!$role || !$role['role_id']) {
|
|
|
|
|
$this->set_message(0,"fail","未上传角色,不允许充值"/* .M("user_play_info", "tab_")->_sql() */);
|
|
|
|
|
}
|
|
|
|
|
$role = M("user_play_info", "tab_")->where([
|
|
|
|
|
'user_id' => $request['user_id'],
|
|
|
|
|
'game_id' => $request['game_id'],
|
|
|
|
|
'server_id' => $request['server_id']
|
|
|
|
|
])->find();
|
|
|
|
|
if (!$role || !$role['role_id']) {
|
|
|
|
|
$this->set_message(0,"fail","未上传角色,不允许充值"/* .M("user_play_info", "tab_")->_sql() */);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$prefix = $request['code'] == 1 ? "SP_" : "PF_";
|
|
|
|
|
$out_trade_no = $prefix.date('Ymd').date('His').sp_random_string(4);
|
|
|
|
|