Initial commit

This commit is contained in:
易焱
2021-04-18 18:51:51 +08:00
commit ec705f2fa8
3240 changed files with 623103 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
<?php
//距离确认收货时间
function auto_receipt_time($delivery_time){
$auto_time=C("shop.auto_receipt_time");
$auto_time=$auto_time*3600*24;
$has_time=$auto_time+$delivery_time-time();
//天
$day=floor($has_time / 86400);
$hours=ceil($has_time % 86400 / 3600);
if($day){
return $day."".$hours."小时";
}else{
return $hours."小时";
}
}