Example #1
0
 public function actionLotteryrestart()
 {
     $request = Yii::$app->request;
     if ($request->isAjax) {
         $id = $request->get('id');
         $answer_new = $request->get('answer');
         $answer_old = QueModel::findOne($id);
         if ($answer_old->que_answer == $answer_new) {
             return '答案一样,请重新填写';
         }
         return '答案一样,请重新填写';
     }
 }
Example #2
0
 public function actionTime6190()
 {
     //        $field = [''];
     $where = ['and', 'time_option=-3', 'start_time <> 0', 'match_time-' . time() . '< 90'];
     $match_id = QueModel::find()->select('match_id')->distinct()->where($where)->asArray()->column();
 }