修复订单API提交BUG

This commit is contained in:
技术老胡 2024-09-12 15:56:20 +08:00
parent 225defb0f3
commit 9309dfb881

View File

@ -61,7 +61,7 @@ class PayController
} else { } else {
return '请使用POST方式提交'; return '请使用POST方式提交';
} }
$key = User::where('pid', $req_data['pid'])->where('state', 1)->value('key'); $key = User::where('pid', $req_data['pid'])->where('state', 1)->value('secret_key');
if (!$key) { if (!$key) {
return '用户禁用或不存在'; return '用户禁用或不存在';
} }