移除私域操盘手模块定义的历史模型

This commit is contained in:
柳清爽
2025-05-13 11:10:31 +08:00
parent 60f3d0ce0a
commit 2da11bbbc9
9 changed files with 25 additions and 355 deletions

View File

@@ -3,8 +3,8 @@
namespace app\cunkebao\controller\wechat;
use app\common\model\TrafficPool as TrafficPoolModel;
use app\common\model\WechatAccount as WechatAccountModel;
use app\cunkebao\controller\BaseController;
use app\cunkebao\model\WechatAccount as WechatAccountModel;
use library\ResponseHelper;
/**
@@ -37,12 +37,12 @@ class GetWechatOnDeviceFriendProfileV1Controller extends BaseController
/**
* 获取添加时间
*
* @param int $timestamp
* @param int|string $timestamp
* @return string
*/
protected function getAddShipDate(int $timestamp): string
protected function getAddShipDate($timestamp): string
{
return date('Y-m-d', $timestamp);
return is_numeric($timestamp) ? date('Y-m-d', $timestamp) : date('Y-m-d', strtotime($timestamp));
}
/**