浏览代码

结算10日,滑落11日,都不在排除周日了

lizhen_gitee 1 年之前
父节点
当前提交
f6a7bfb5ea
共有 1 个文件被更改,包括 21 次插入2 次删除
  1. 21 2
      application/common.php

+ 21 - 2
application/common.php

@@ -903,7 +903,7 @@ if (!function_exists('httpurllocal')) {
 /**
  * 滑落要按11天算
  */
-function hualuo_tendays_ago(){
+function hualuo_tendays_ago_old7(){
     $nowtime = time();
 
     /*if(input('date','')){
@@ -930,9 +930,18 @@ function hualuo_tendays_ago(){
 
     return $rs;
 }
+function hualuo_tendays_ago(){
+    $nowtime = time();
+
+    $today   = strtotime(date('Y-m-d',$nowtime));
+
+    $rs = $today - (10 * 86400);
+
+    return $rs;
+}
 
 //结算要按10天算
-function jiesuan_tendays_ago(){
+function jiesuan_tendays_ago_old7(){
 
     $nowtime = time();
 
@@ -960,4 +969,14 @@ function jiesuan_tendays_ago(){
 
     return $rs;
 }
+function jiesuan_tendays_ago(){
+
+    $nowtime = time();
+
+    $today   = strtotime(date('Y-m-d',$nowtime));
+
+    $rs = $today - (9 * 86400);
+
+    return $rs;
+}