阶段更新
This commit is contained in:
@@ -463,12 +463,12 @@ class WeChatController extends Controller
|
||||
}
|
||||
|
||||
if ($delivery_code) {
|
||||
if (! $user->info->delivery_code) {
|
||||
$areaCode = AreaCode::query()->where('code', $delivery_code)->first();
|
||||
if ($areaCode->user_id) {
|
||||
return $this->failed('当前提货码已被别人使用');
|
||||
}
|
||||
$areaCode = AreaCode::query()->where('code', $delivery_code)->first();
|
||||
if ($areaCode->user_id) {
|
||||
return $this->failed('当前提货码已被别人使用');
|
||||
}
|
||||
|
||||
if (! $user->info->delivery_code) {
|
||||
$user->info->update([
|
||||
'delivery_code' => $delivery_code
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user