底层代码优化及用户管理

This commit is contained in:
Ghost
2025-03-29 17:01:56 +08:00
parent a734ae2864
commit 6ec2ceefc5
9 changed files with 155 additions and 16 deletions

View File

@@ -13,6 +13,7 @@ class WechatController extends BaseController
private function saveWechatAccount($item)
{
$data = [
'id' => $item['id'],
'wechatId' => $item['wechatId'],
'deviceAccountId' => $item['deviceAccountId'],
'imei' => $item['imei'],
@@ -49,7 +50,7 @@ class WechatController extends BaseController
'labels' => $item['labels']
];
$account = WechatAccountModel::where('wechatId', $item['wechatId'])->find();
$account = WechatAccountModel::where('id', $item['id'])->find();
if ($account) {
$account->save($data);
} else {