CrmChapterOrderDetailService.php 653 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: z-yang
  5. * Date: 2019/6/6
  6. * Time: 11:34
  7. */
  8. namespace App\Modules\Subscribe\Services;
  9. use App\Modules\Subscribe\Models\CrmChapterOrderDetail;
  10. class CrmChapterOrderDetailService
  11. {
  12. public static function create($uid, $fee,$bid,$crm,$cid,$order_type)
  13. {
  14. CrmChapterOrderDetail::create([
  15. 'uid' => $uid,
  16. 'fee' => $fee,
  17. 'bid'=>$bid,
  18. 'crm_param'=>$crm,
  19. 'day' => date('Y-m-d'),
  20. 'cid'=>$cid,
  21. 'order_type'=>$order_type
  22. ]
  23. );
  24. }
  25. }