'头像审核未通过', 'content' => '用户您好,经平台审核您的头像不符合平台规范要求,没有通过审核,请重新上传!' ]; const headimg_yes = [ 'title' => '头像审核已通过', 'content' => '用户您好,经平台审核您的头像已通过审核!' ]; //学历认证结果 const education_authentication_yes = [ 'title' => '学历认证已通过', 'content' => '用户您好,经平台审核您的学历认证已通过审核!' ]; const education_authentication_no = [ 'title' => '学历认证未通过', 'content' => '用户您好,经平台审核您的学历认证不符合平台规范要求,没有通过审核,请重新上传!' ]; //工作认证结果 const work_authentication_no = [ 'title' => '工作认证未通过', 'content' => '用户您好,经平台审核您的工作认证不符合平台规范要求,没有通过审核,请重新上传!' ]; const work_authentication_yes = [ 'title' => '工作认证已通过', 'content' => '用户您好,经平台审核您的工作认证已通过审核!' ]; // //申请wx结果 // const wx_no = [ // 'title' => '对方已拒绝', // 'content' => '用户您好,经平台审核您的工作认证不符合平台规范要求,没有通过审核,请重新上传!' // ]; // const wx_yes = [ // 'title' => '工作认证已通过', // 'content' => '用户您好,经平台审核您的工作认证已通过审核!' // ]; public static $operate=[ 'headimg_no'=>self::headimg_no, 'headimg_yes'=>self::headimg_yes, 'education_authentication_yes'=>self::education_authentication_yes, 'education_authentication_no'=>self::education_authentication_no, 'work_authentication_no'=>self::work_authentication_no, 'work_authentication_yes'=>self::work_authentication_yes, ]; /** * 系统消息 */ public static function messages($res,$user_id){ Db::startTrans(); try { if(!is_null($res)) SystemMessages::create(['uid' => $user_id, 'title' => self::$operate[$res]['title'], 'content' => self::$operate[$res]['content']]); Db::commit(); } catch (\Exception $e) { Db::rollback(); } } }