1.分销佣金提现等问题

This commit is contained in:
xucong 2024-09-02 15:45:11 +08:00
parent 0c84f03bd5
commit 0eaa031a65
2 changed files with 5 additions and 3 deletions

@ -74,9 +74,10 @@ class Billions extends Api
*/
public function rechargeBalance()
{
$post = $this->request->post();
$result = BillionsLogic::applyBillionsBalance($this->user_id, $post);
// $post = $this->request->post();
$post['money'] = 100;
// $result = BillionsLogic::applyBillionsBalance($this->user_id, $post);
$result = BillionsLogic::applyBillionsBalance(196, $post);
if ($result['code'] == -1) {
return JsonServer::error($result['msg']);
}

@ -337,6 +337,7 @@ class BillionsLogic extends Logic
// var_dump($first_billions_msg);die;
if(count($first_billions_msg) > 0){
foreach($first_billions_msg as $k=>$v){
var_dump($ufl);
if($ufl > 0){
if($v['order_price'] <= $ufl+$v['subsidy_price']){
// 查询用户总余额账户