|
|
<?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, ]; }}
|