Example #1
0
                            break;
                        }
                        if ($v['suggestion'] != '' && $v4 != '' && mb_strpos($v['suggestion'], $v4, 0, 'utf8') !== false) {
                            $complaint_type = $v3['complaints_type'];
                            $problem_type = $v3['complaints_problem_type'];
                            $find_type = 1;
                            break;
                        }
                    }
                    if ($find_type == 1) {
                        break;
                    }
                }
            }
            $update_complaint_level_and_type = $curDate;
            $ret = Complaint::updateComplaintLevelAndType($v['id'], array("complaint_level" => $complaint_level, "complaint_type" => $complaint_type, "problem_type" => $problem_type, "update_complaint_level_and_type" => $update_complaint_level_and_type));
            if ($ret > 0) {
                $successNum++;
            }
        }
        $complaints = Complaint::search(array('start_date' => $start_date, "update_complaint_level_and_type[!]" => $curDate), 0, 100);
        if ($successNum > 900) {
            $complaints = false;
        }
    }
    echo "更新成功" . $successNum . "个";
    exit;
}
$http_query = '';
foreach ($arr as $key => $value) {
    $http_query .= $value . '=' . ${$value} . '&';