|
|
@ -531,7 +531,7 @@ class BaseController extends RestController
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private function spend_param($param=array())
|
|
|
|
private function spend_param($param=array())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
$productType = $param['product_type'] ?: 0;
|
|
|
|
$user_entity = get_user_entity($param['user_id']);
|
|
|
|
$user_entity = get_user_entity($param['user_id']);
|
|
|
|
$promote = $this->getPromoteById($user_entity["promote_id"]);
|
|
|
|
$promote = $this->getPromoteById($user_entity["promote_id"]);
|
|
|
|
|
|
|
|
|
|
|
@ -558,7 +558,7 @@ class BaseController extends RestController
|
|
|
|
// $data_spned['pay_time'] = NOW_TIME;
|
|
|
|
// $data_spned['pay_time'] = NOW_TIME;
|
|
|
|
$data_spned['pay_status'] = $param["pay_status"];
|
|
|
|
$data_spned['pay_status'] = $param["pay_status"];
|
|
|
|
$data_spned['market_admin_id'] = $this->getMarketAdminId($promote);
|
|
|
|
$data_spned['market_admin_id'] = $this->getMarketAdminId($promote);
|
|
|
|
$data_spned['is_check'] = $this->getIsCheckValue($promote, $param["game_id"]);
|
|
|
|
$data_spned['is_check'] = $productType == 1 ? 2 : $this->getIsCheckValue($promote, $param["game_id"]);
|
|
|
|
if ($param["pay_status"] == 1)
|
|
|
|
if ($param["pay_status"] == 1)
|
|
|
|
$data_spned['payed_time'] = time();
|
|
|
|
$data_spned['payed_time'] = time();
|
|
|
|
else
|
|
|
|
else
|
|
|
@ -591,6 +591,7 @@ class BaseController extends RestController
|
|
|
|
$data_spned['merchant_way'] = isset($param['merchant_way']) ? $param['merchant_way'] : 0;
|
|
|
|
$data_spned['merchant_way'] = isset($param['merchant_way']) ? $param['merchant_way'] : 0;
|
|
|
|
$data_spned['partner_type'] = isset($param['main_id']) ? $param['main_id'] : 0;
|
|
|
|
$data_spned['partner_type'] = isset($param['main_id']) ? $param['main_id'] : 0;
|
|
|
|
$data_spned['share_status'] = isset($param['share_status']) ? $param['share_status'] : 0;
|
|
|
|
$data_spned['share_status'] = isset($param['share_status']) ? $param['share_status'] : 0;
|
|
|
|
|
|
|
|
$data_spned['product_type'] = $productType;
|
|
|
|
|
|
|
|
|
|
|
|
return $data_spned;
|
|
|
|
return $data_spned;
|
|
|
|
}
|
|
|
|
}
|
|
|
|