lgy 14 tuntia sitten
vanhempi
commit
3ee3ed6f83

+ 4 - 4
server/application/api/controller/xz/XzController.php

@@ -78,14 +78,14 @@ class XzController extends ZskkDefaultApiController
 
     public function createExam(XzService $service)
     {
-        // try{
+         try{
             $params = $this->getParams();
             XzValidate::checkCreate($params);
             $data     = $service->saveExam($params);
             return $this->success($data);
-        // } catch (Exception $exception){
-        //     $this->throwError($exception->getMessage(),0001);
-        // }
+         } catch (Exception $exception){
+             $this->throwError($exception->getMessage(),0001);
+         }
     }
 
     public function wjDetails(ReportService $service)

+ 24 - 24
server/vendor/topthink/think-oracle/src/Builder.php

@@ -19,30 +19,30 @@ use think\Exception;
  */
 class Builder extends BaseBuilder
 {
-    protected $selectSql = 'SELECT * FROM (SELECT thinkphp.*, rownum AS numrow FROM (SELECT  %DISTINCT% %FIELD% FROM %TABLE%%JOIN%%WHERE%%GROUP%%HAVING%%ORDER%) thinkphp ) %LIMIT%%COMMENT%';
-
-    /**
-     * limit分析
-     * @access protected
-     * @param  Query     $query        查询对象
-     * @param  mixed     $limit
-     * @return string
-     */
-    protected function parseLimit(Query $query, $limit)
-    {
-        $limitStr = '';
-        if (!empty($limit)) {
-            $limit = explode(',', $limit);
-            if (count($limit) > 1) {
-                $limitStr = "(numrow>" . $limit[0] . ") AND (numrow<=" . ($limit[0] + $limit[1]) . ")";
-            } else {
-                $limitStr = "(numrow>0 AND numrow<=" . $limit[0] . ")";
-            }
-
-        }
-
-        return $limitStr ? ' WHERE ' . $limitStr : '';
-    }
+//    protected $selectSql = 'SELECT * FROM (SELECT thinkphp.*, rownum AS numrow FROM (SELECT  %DISTINCT% %FIELD% FROM %TABLE%%JOIN%%WHERE%%GROUP%%HAVING%%ORDER%) thinkphp ) %LIMIT%%COMMENT%';
+//
+//    /**
+//     * limit分析
+//     * @access protected
+//     * @param  Query     $query        查询对象
+//     * @param  mixed     $limit
+//     * @return string
+//     */
+//    protected function parseLimit(Query $query, $limit)
+//    {
+//        $limitStr = '';
+//        if (!empty($limit)) {
+//            $limit = explode(',', $limit);
+//            if (count($limit) > 1) {
+//                $limitStr = "(numrow>" . $limit[0] . ") AND (numrow<=" . ($limit[0] + $limit[1]) . ")";
+//            } else {
+//                $limitStr = "(numrow>0 AND numrow<=" . $limit[0] . ")";
+//            }
+//
+//        }
+//
+//        return $limitStr ? ' WHERE ' . $limitStr : '';
+//    }
 
     /**
      * 设置锁机制