海南旅游SAAS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

49 lines
975 B

<?php
namespace App\Service;
use App\Common\StatementType;
use App\Models\Statement;
use App\Traits\DemandTraits;
class WithdrawalService
{
//提现流水
public function create($price,$type,$userId,$userType,$accessId,$accessType)
{
Statement::query()->create([
'price' => $price,
'type' => $type,
'user_id' => $userId,
'user_type' => $userType,
'access_id' => $accessId,
'access_type' => $accessType,
]);
}
//订单流水 暂时放一起
public function createByOrder($price,$type,$userId,$userType,$accessId,$accessType)
{
return [
'price' => $price,
'type' => $type,
'user_id' => $userId,
'user_type' => $userType,
'access_id' => $accessId,
'access_type' => $accessType,
];
}
public function createByOrderFormAdmin($price,$type,$userId,$userType,$orderId)
{
return [
'price' => $price,
'type' => $type,
'cut_user_id' => $userId,
'cut_user_type' => $userType,
'order_id' => $orderId,
];
}
}