@@ -1416,7 +1416,7 @@ class TalentAllowance extends AdminController {
for ($i = 0; $i < count($monthAndDayList); $i++) {
$obj = explode("=", $monthAndDayList[$i]);
$month = $obj[0];
- $day = $obj[1];
+ $day = is_numeric($obj[1]) ? $obj[1] : 0;
$count = $map[$month];
if ($count == 0) {
$map[$month] = $day;
@@ -412,7 +412,7 @@ class TalentAllowanceApi {
@@ -371,7 +371,7 @@ TalentAllowanceInfoDlg.saveProjectData = function (id, project, allowanceType) {
error = error + num + "月的考勤天数不在范围内(1-" + max + ");";
}
- if (days == null || days == '') {
+ if (days == null || days == '' || isNaN(days)) {
days = 0;
months.push(num + "=" + days);