20201112
This commit is contained in:
@@ -132,3 +132,11 @@ function add_usermsg($userid, $content, $url) {
|
||||
$msgdata['ctime'] = time();
|
||||
return $msg_obj->insert($msgdata);
|
||||
}
|
||||
|
||||
function jsonSuccess($data){
|
||||
return json(['code'=>0,'msg'=>'success','data'=>$data]);
|
||||
}
|
||||
|
||||
function jsonError($msg){
|
||||
return json(['code'=>1,'msg'=>$msg]);
|
||||
}
|
||||
Reference in New Issue
Block a user