自动收货和自动评价问题处理

This commit is contained in:
evoxwht 2023-04-01 10:54:32 +08:00
parent 9d363bd7d3
commit 7b9d489092
3 changed files with 5 additions and 5 deletions

View File

@ -242,6 +242,7 @@ class LiveRoomServices extends BaseServices
/**
* 同步直播间状态
* @return bool
* @throws \Exception
*/
public function syncRoomStatus()
{
@ -249,7 +250,6 @@ class LiveRoomServices extends BaseServices
$limit = 50;
$data = $dataAll = [];
$rooms = $this->dao->getColumn([], 'id,room_id,live_status', 'room_id');
// if (!$rooms) return true;
do {
$wxRooms = MiniProgramService::getLiveInfo($start, $limit);
foreach ($wxRooms as $room) {

View File

@ -2566,12 +2566,12 @@ HTML;
public function autoComment()
{
//自动评价天数
$systemCommentTime = (int)sys_config('system_comment_time', 0);
$systemCommentTime = sys_config('system_comment_time', 0);
//0为取消自动默认好评功能
if ($systemCommentTime == 0) {
return true;
}
$sevenDay = strtotime(date('Y-m-d H:i:s', strtotime('-' . $systemCommentTime . ' day')));
$sevenDay = bcsub((string)time(), bcmul((string)$systemCommentTime, '86400'));
/** @var StoreOrderStoreOrderStatusServices $service */
$service = app()->make(StoreOrderStoreOrderStatusServices::class);
$orderList = $service->getTakeOrderIds([

View File

@ -522,12 +522,12 @@ class StoreOrderTakeServices extends BaseServices
public function autoTakeOrder()
{
//7天前时间戳
$systemDeliveryTime = (int)sys_config('system_delivery_time', 0);
$systemDeliveryTime = sys_config('system_delivery_time', 0);
//0为取消自动收货功能
if ($systemDeliveryTime == 0) {
return true;
}
$sevenDay = strtotime(date('Y-m-d H:i:s', strtotime('-' . $systemDeliveryTime . ' day')));
$sevenDay = bcsub((string)time(), bcmul((string)$systemDeliveryTime, '86400'));
/** @var StoreOrderStoreOrderStatusServices $service */
$service = app()->make(StoreOrderStoreOrderStatusServices::class);
$orderList = $service->getTakeOrderIds([