Browse Source

提交数据

lvhao 3 tháng trước cách đây
mục cha
commit
811ba9c06c
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      core/CoreApp/controllers/Customer.php

+ 4 - 0
core/CoreApp/controllers/Customer.php

@@ -1702,12 +1702,16 @@ class Customer extends Start_Controller {
 				if(!empty($value['29'])){
 					$value['29'] = str_replace('/','-',$value['29']);
 					$dtime = strtotime($value['29']);
+					if($dtime > time()){
+						$dtime = time();
+					}
 					if(empty($dtime)){
 						$dtime = time();
 					}
 				}else{
 					$dtime = time();
 				}
+				
 				$post['name'] = ($value['10'] && $value['10'] != 'NULL')?str_replace(array('/( | | |\s)/',"'"),array(' ',"’"),$value['10']):'';
 				$post['email'] = $value['12'];
 				if($value['20'] != '')