|
|
|
|
@ -158,6 +158,9 @@ class OrderController extends Controller
|
|
|
|
|
$appointment_number = request('appointment_number');
|
|
|
|
|
$plan_id = request('plan_id');
|
|
|
|
|
$combo_id = request('combo_id');
|
|
|
|
|
if(isset($combo_id) and is_string($combo_id)){
|
|
|
|
|
$combo_id=0;
|
|
|
|
|
}
|
|
|
|
|
if (!isset($plan_id) or empty($plan_id)) return \Yz::echoErrorJson("占用的号源id不能为空");
|
|
|
|
|
$check=DB::table('orders')->where(['appointment_number' => $appointment_number])->first();
|
|
|
|
|
if (!!$check) return \Yz::echoErrorJson("预约已存在,无需重复推送");
|
|
|
|
|
|