fix bug
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user