海南旅游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

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. <?php
  2. namespace App\Service;
  3. use App\Common\StatementType;
  4. use App\Models\Statement;
  5. use App\Traits\DemandTraits;
  6. class WithdrawalService
  7. {
  8. //提现流水
  9. public function create($price,$type,$userId,$userType,$accessId,$accessType)
  10. {
  11. Statement::query()->create([
  12. 'price' => $price,
  13. 'type' => $type,
  14. 'user_id' => $userId,
  15. 'user_type' => $userType,
  16. 'access_id' => $accessId,
  17. 'access_type' => $accessType,
  18. ]);
  19. }
  20. //订单流水 暂时放一起
  21. public function createByOrder($price,$type,$userId,$userType,$accessId,$accessType)
  22. {
  23. return [
  24. 'price' => $price,
  25. 'type' => $type,
  26. 'user_id' => $userId,
  27. 'user_type' => $userType,
  28. 'access_id' => $accessId,
  29. 'access_type' => $accessType,
  30. ];
  31. }
  32. public function createByOrderFormAdmin($price,$type,$userId,$userType,$orderId)
  33. {
  34. return [
  35. 'price' => $price,
  36. 'type' => $type,
  37. 'cut_user_id' => $userId,
  38. 'cut_user_type' => $userType,
  39. 'order_id' => $orderId,
  40. ];
  41. }
  42. }