Example #1
0
 public function CollegeAction()
 {
     $list = \Grade::getCollege();
     $index = new \Index();
     $data = $index->getCollege();
     foreach ($data as $val) {
         $grade = \Grade::getGrade($list, $val);
         $result = $index->updCollege($val['col_id'], $grade);
         if ($result != 200) {
             echo $val['col_id'] . "失败!";
             die;
         }
     }
     echo "大学评分更新成功!";
     die;
 }