This commit is contained in:
knowpia
2022-09-14 09:32:35 +08:00
parent c133d6c830
commit 985f7f1743
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ class Order
if(!Student::findOrEmpty($student_id)){
return show("用户信息不存在!", ERROR_CODE,[]);
}
if(\app\model\Order::where(["userid"=>$userid,"student_id"=>$student_id,"status"=>1])->find()){
if(\app\model\Order::where(["user_id"=>$userid,"student_id"=>$student_id,"status"=>1])->find()){
return show("已经为该孩子助力过了!", ERROR_CODE,[]);
}
$order = \app\model\Order::create([

View File

@@ -96,7 +96,7 @@ class Wechat
if(empty($order)) exit('订单信息不存在');
if(\app\model\Order::where(["userid"=>$order['userid'],"student_id"=>$order['student_id'],"status"=>1])->find()){
if(\app\model\Order::where(["user_id"=>$order['userid'],"student_id"=>$order['student_id'],"status"=>1])->find()){
exit('已经为该孩子助力过了');
}