调整商品规格

This commit is contained in:
2023-01-30 10:53:48 +08:00
parent a10311b618
commit ee394e1ac8
3 changed files with 36 additions and 13 deletions

View File

@@ -471,7 +471,7 @@ class WeChatController extends Controller
if ($delivery_code) {
$areaCode = AreaCode::query()->where('code', $delivery_code)->first();
if ($areaCode->user_id) {
if ($areaCode->user_id && $areaCode->user_id != Api::userId()) {
return $this->failed('当前提货码已被别人使用');
}