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

23 lines
388 B

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. public function create($price,$type,$userId,$userType,$orderId = '')
  9. {
  10. Statement::query()->create([
  11. 'price' => $price,
  12. 'type' => $type,
  13. 'user_id' => $userId,
  14. 'user_type' => $userType,
  15. 'order_id' => $orderId ?? ''
  16. ]);
  17. }
  18. }