<?php
/**
 * Created by PhpStorm.
 * User: z-yang
 * Date: 2019/6/6
 * Time: 11:34
 */

namespace App\Modules\Subscribe\Services;

use App\Modules\Subscribe\Models\CrmChapterOrderDetail;

class CrmChapterOrderDetailService
{
    public static function create($uid, $fee,$bid,$crm,$cid,$order_type)
    {
            CrmChapterOrderDetail::create([
                    'uid' => $uid,
                    'fee' => $fee,
                    'bid'=>$bid,
                    'crm_param'=>$crm,
                    'day' => date('Y-m-d'),
                    'cid'=>$cid,
                    'order_type'=>$order_type
                ]
            );
    }
}