settter
parent
a3581f2846
commit
0d64a57f45
|
@ -87,7 +87,7 @@ class Comment extends Base
|
||||||
} catch (ValidateException $e) {
|
} catch (ValidateException $e) {
|
||||||
return $this->json(4001, $e->getError());
|
return $this->json(4001, $e->getError());
|
||||||
} catch (RepositoryException $e) {
|
} catch (RepositoryException $e) {
|
||||||
return $this->json(4001, $e->getError());
|
return $this->json(4001, $e->getMessage());
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo $e->getMessage();
|
echo $e->getMessage();
|
||||||
return $this->json(5001, '服务器繁忙!获取用户个人信息失败');
|
return $this->json(5001, '服务器繁忙!获取用户个人信息失败');
|
||||||
|
|
|
@ -31,16 +31,16 @@ class CommentRepository extends Repository
|
||||||
return CommentModel::alias("a")
|
return CommentModel::alias("a")
|
||||||
->join("account b" ,"a.user_code = b.user_code")
|
->join("account b" ,"a.user_code = b.user_code")
|
||||||
->where($whereMap)
|
->where($whereMap)
|
||||||
->where(function ($q){
|
// ->where(function ($q){
|
||||||
$q->whereOr(
|
// $q->whereOr(
|
||||||
[
|
// [
|
||||||
// ["b.blank_time","=","null"],
|
// //["b.blank_time","=","null"],
|
||||||
["b.blank_time","=",null],
|
// ["b.blank_time","=",null],
|
||||||
["b.blank_time","=",""],
|
// ["b.blank_time","=",""],
|
||||||
["b.blank_time","<",date("Y-m-d H:i:s")],
|
// ["b.blank_time","<",date("Y-m-d H:i:s")],
|
||||||
]
|
// ]
|
||||||
);
|
// );
|
||||||
})
|
// })
|
||||||
->field([
|
->field([
|
||||||
"a.comment",
|
"a.comment",
|
||||||
"a.user_code as userCode",
|
"a.user_code as userCode",
|
||||||
|
|
Loading…
Reference in New Issue