|
|
@@ -15,6 +15,26 @@ class CustomService extends BaseService
|
|
|
public static function getOldCustomList($where)
|
|
|
{
|
|
|
$data = CustomClass::getList('*', $where, 'visitTime DESC');
|
|
|
+ $data['list'] = [
|
|
|
+ [
|
|
|
+ 'id' => 12545138,
|
|
|
+ 'mobile' => 15280215347,
|
|
|
+ "nickName" => "石头",
|
|
|
+ "avatar" => "https://img.huaml.com/wx/avatar/12358/202005/23/b903ac24555fc0f94af3ebd866543c7e.jpg",
|
|
|
+ "avatarUrl" => "https://img.huaml.com/wx/avatar/12358/202005/23/b903ac24555fc0f94af3ebd866543c7e.jpg",
|
|
|
+ "smallAvatarUrl" => "https://img.huaml.com/wx/avatar/12358/202005/23/b903ac24555fc0f94af3ebd866543c7e_small.jpg",
|
|
|
+ 'member' => 3,
|
|
|
+ 'visitTimeFormat' => '05-29 22:46',
|
|
|
+ 'userAsset' => [
|
|
|
+ 'growth' => 185,
|
|
|
+ 'discount' => '1.00',
|
|
|
+ 'balance' => 0.00,
|
|
|
+ 'subscribe' => 0,
|
|
|
+ 'store' => 0,
|
|
|
+ ]
|
|
|
+ ]
|
|
|
+ ];
|
|
|
+
|
|
|
$list = isset($data['list']) && !empty($data['list']) ? $data['list'] : [];
|
|
|
if (empty($list)) {
|
|
|
return $data;
|