修改解除绑定用户功能

This commit is contained in:
wangxiaowei 2024-10-08 15:14:11 +08:00
parent 4f8af65ad1
commit 46bba01f06

@ -557,5 +557,19 @@ class LocalStoreLogic extends Logic
public static function unbindUser($post)
{
if ($post['id'] <=0 ) {
throw new \Exception('缺少ID');
}
$result = LocalStoreBind::where('id', $post['id'])->update([
'is_unbind' => 1,
'unbind_time' => time()
]);
if ($result) {
return true;
}
throw new \Exception('解绑失败');
}
}