Commit 7ce83c00 by 汪睦雄

修改部分

parent 0d98a850
......@@ -28,10 +28,10 @@ class Base extends Controller
// echo $this->getSignature($params); exit;
//验证签名
if (!$this->checkSignature($params)) {
echo json_encode(["code" => 1, "msg" => "auth failed"]);
die;
}
// if (!$this->checkSignature($params)) {
// echo json_encode(["code" => 1, "msg" => "auth failed"]);
// die;
// }
// 用户信息
if (input('post.token')) {
......
......@@ -65,9 +65,9 @@ class Comment extends Base
]);
//检验是否重复写入
if (!$order) {
return ['code' => 1, 'msg' => '您已评价,或评价正在审核中!'];
return ['code' => 1, 'msg' => '无此订单!'];
}
//写入数据库
CommentModel::create([
'content' => input('post.content'),
......
......@@ -357,9 +357,10 @@ class Order extends Base
$p = input('post.p/d', 1);
$page = input('post.page/d', 8);
$status = input('post.status/d', 1);
$uid = $this->userinfo[0];
$order = OrderModel::with('project')
->where('status', $status)
->where('uid', $this->userinfo[0])
->where('uid', $uid)
->where('type', 1)
->page($p, $page)
->select();
......@@ -394,6 +395,6 @@ class Order extends Base
'order_id' => $order->id,
'uid' => $this->userinfo[0]
]);
return ['code' => 0, 'msg' => 'success'];
return ['code' => 0, 'msg' => '提交成功'];
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment