"", "createBtn" => "" ];*/ return $data; } /** * 监听用户中心切换按钮 * * @param $data * @author shuixian * @DataTime: 2019/12/18 14:07 */ public function onDiyChangeStaff($data) { $userModel = new User(); $last_staff_id = $userModel->where('id',$this->getUserId())->value('last_staff_id '); if ( $last_staff_id) { $staff_model = new LongbingUserInfo(); $staff_info = $staff_model->getStaff($last_staff_id, $this->_uniacid); if(!empty($staff_info)){ $job_model = new Job(); $job_name = $job_model->where( 'id' , $staff_info['job_id'])->value('name') ; $staff_info['job_name'] = $job_name; $staff_info = longbing_array_columns([$staff_info],['id','fans_id','name','avatar','job_name']) ; $staff_info = $staff_info[0] ; //获取职位信息 } $data['dataList'] = $staff_info; } return $data ; } /** * 监听用户中心模块 * * @return array * @author shuixian * @DataTime: 2019/12/18 14:04 */ public function onAddUcenterCompoent(){ $userInfo = <<initFirstUserToStaff($user['id'], $user['uniacid']) ; } }