修复内容

This commit is contained in:
2026-01-18 18:07:53 +08:00
parent 5455aceab5
commit 5fe5289e26
9 changed files with 493 additions and 470 deletions

View File

@@ -136,7 +136,9 @@ class UserAddressLogic
'district_id' => $post['district_id'],
'address' => $post['address'],
'is_default' => $post['is_default'],
'createtime' => time()
'createtime' => time(),
'lng' => $post['latitude'],
'lat' => $post['longitude']
];
$result = Db::name('user_address')->insert($data);
Db::commit();
@@ -175,7 +177,9 @@ class UserAddressLogic
'district_id' => $post['district_id'],
'address' => $post['address'],
'is_default' => $post['is_default'],
'updatetime' => time()
'updatetime' => time(),
'lng' => $post['latitude'],
'lat' => $post['longitude']
];
$result = Db::name('user_address')