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