添加好友优化

This commit is contained in:
wong
2025-07-21 15:08:12 +08:00
parent 1f843d76ae
commit dcb95b4d02
4 changed files with 18 additions and 18 deletions

View File

@@ -96,7 +96,8 @@ class PostExternalApiV1Controller extends Controller
if (!$trafficPool) {
$trafficPoolId =Db::name('traffic_pool')->insertGetId([
'identifier' => $identifier,
'mobile' => $params['phone']
'mobile' => !empty($params['phone']) ? $params['phone'] : '',
'createTime' => time()
]);
}else{
$trafficPoolId = $trafficPool['id'];