weizong song 5 days ago
parent fffe54465f
commit debcc9c619

@ -587,6 +587,16 @@ class OrdersController extends CommonController
*/
public function createOrder()
{
//如果开始日期比当前日期早 2 天以上,拒绝
$from_date = request()->from_date;
if (strtotime($from_date) < strtotime('-2 days')) {
return response()->json([
"errorcode" => "104",
"errormsg" => "开始日期不能早于当前日期 2 天以上"
]);
}
DB::beginTransaction();
try {
$mobile = request()->mobile ?? request()->patient_mobile;

Loading…
Cancel
Save