修改bug

master
ljl 1 year ago
parent 358c6930ae
commit b0fa03534e

@ -821,6 +821,9 @@ class BaseController extends Controller
$data_spned['pay_way'] = $param["pay_way"];
$data_spned['market_admin_id'] = $this->getMarketAdminId($promote);
$data_spned['is_check'] = $this->getIsCheckValue($promote, $param["game_id"]);
if ($data_spned['pay_way'] == -1 && in_array($data_spned['game_id'], [4, 5])) {
$data_spned['is_check'] = 2;
}
if($data_spned['pay_way'] != 7){
$discount = $this->get_discount($param['game_id'],$user_entity['promote_id'], $param["game_id"]);
$data_spned['pay_amount'] = $param["price"] * $discount['discount']/10;//实付金额

@ -558,7 +558,10 @@ class BaseController extends RestController
// $data_spned['pay_time'] = NOW_TIME;
$data_spned['pay_status'] = $param["pay_status"];
$data_spned['market_admin_id'] = $this->getMarketAdminId($promote);
$data_spned['is_check'] = $productType == 1 ? 2 : $this->getIsCheckValue($promote, $param["game_id"]);
$data_spned['is_check'] = $this->getIsCheckValue($promote, $param["game_id"]);
if ($data_spned['pay_way'] == -1 && in_array($data_spned['game_id'], [4, 5])) {
$data_spned['is_check'] = 2;
}
if ($param["pay_status"] == 1)
$data_spned['payed_time'] = time();
else

@ -398,6 +398,9 @@ class Pay
$spend_data['sdk_version'] = $vo->getSdkVersion();
$spend_data['market_admin_id'] = $this->getMarketAdminId($promote);
$spend_data['is_check'] = $this->getIsCheckValue($promote, $vo->getGameId());
if ($spend_data['pay_way'] == -1 && in_array($spend_data['game_id'], [4, 5])) {
$spend_data['is_check'] = 2;
}
/* if ($isKBCPartner) {
$spend_data['partner_type'] = 1;
} */

Loading…
Cancel
Save