yanzai 1 year ago
parent 844d1b9eee
commit d87de54522

@ -75,14 +75,14 @@ class PlanController extends Controller
$planType = DB::table('plan_type as a')->where(['a.id' => $time->plan_type_id, 'a.is_del' => 0, 'a.status' => 1])->first(); $planType = DB::table('plan_type as a')->where(['a.id' => $time->plan_type_id, 'a.is_del' => 0, 'a.status' => 1])->first();
if (!$planType) return \Yz::echoError1('号源类型不可用'); if (!$planType) return \Yz::echoError1('号源类型不可用');
} }
$cleanTime = implode('', explode(':', $time->time)); // 去除冒号的时间字符串
$data = [ $data = [
'model_id' => $model->id, 'model_id' => $model->id,
'date' => $date_ymd, 'date' => $date_ymd,
'week' => $dayOfWeek, 'week' => $dayOfWeek,
'time' => $time->time, 'time' => $time->time,
'type' => $time->type, 'type' => $time->type,
'plan_number' => implode('', explode(':', $time->time)), 'plan_number' => substr($cleanTime, 0, 4),
'is_vip' => empty($planType)?null: $planType->is_vip, 'is_vip' => empty($planType)?null: $planType->is_vip,
'use_type' => empty($planType)?null:$planType->use_type, 'use_type' => empty($planType)?null:$planType->use_type,
'sex' => empty($planType)?null:$planType->sex, 'sex' => empty($planType)?null:$planType->sex,

Loading…
Cancel
Save