Merge branch 'master' into auth

This commit is contained in:
强哥 committed 2021-10-18 12:19:13 +08:00
commit ab45c1a901
5 files changed
+216 -201

No files matched your search

+8 -1
View File
@@ -1 +1,8 @@
deny from all
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>
+13 -11
View File
@@ -171,18 +171,20 @@
</div>
</div>
</div>
<script type="text/javascript">
window.onload = function() {
var show = document.getElementById("show");
<script type="text/javascript">
window.onload = function() {
let show = document.getElementById("show");
setInterval(function() {
var time = new Date(); // 程序计时的月从0开始取值后+1
var m = time.getMonth() + 1;
var t = time.getFullYear() + "-" + m + "-"
+ time.getDate() + " " + time.getHours() + ":"
+ time.getMinutes() + ":" + time.getSeconds();
show.innerHTML = t;
let date = new Date(); // 程序计时的月从0开始取值后+1
let y = date.getFullYear(),
m = ((date.getMonth()+1) >= 10 ? (date.getMonth() + 1 ) : '0' + (date.getMonth() + 1)),
d = (date.getDate() >= 10 ? date.getDate() : '0' + date.getDate()),
hh = date.getHours() >= 10 ? date.getHours() : '0' + date.getHours(),
mm = date.getMinutes() >= 10 ? date.getMinutes() : '0' + date.getMinutes(),
ss = date.getSeconds() >= 10 ? date.getSeconds() : '0' + date.getSeconds() ;
show.innerHTML = y + '-' + m + '-' + d + ' ' + hh + ':' + mm + ':' + ss;
}, 1000);
};
</script>
};
</script>
</body>
</html>
+1 -1
View File
@@ -45,7 +45,7 @@ class SearchOne extends BaseModel
->where('kaoshi_id', 'in', function($query) use($src){
$query->name('kaoshi')
->whereTime('bfdate|enddate', 'between', [$src['bfdate'], $src['enddate']])
->where('luru&status', '0')
->where('luru&status', '1')
->when(count($src['kaoshi_id'])>0, function($w) use($src){
$w->where('id', 'in', $src['kaoshi_id']);
})
Loaded 3 of 5 files, more files were not shown because too many files have changed in this diff. Show more