<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Member\Converter; use ModStart\Core\Dao\ModelUtil; use Module\Vendor\Html\HtmlConverterInterceptor; class AtMemberHtmlInterceptor implements HtmlConverterInterceptor { public function convert($AZvp2) { goto NJHJ8; o_1J0: foreach ($XeSWB[1] as $aaYHa => $eHV4B) { goto EeB0u; SfmYm: if (empty($eHV4B)) { continue; } goto xvaA2; EeB0u: $eHV4B = trim($eHV4B); goto SfmYm; xvaA2: $G4XMv[$XeSWB[0][$aaYHa]] = $eHV4B; goto ALSel; ALSel: } goto F8Hly; rfIWx: if (empty($qwTRL)) { return $AZvp2; } goto ZufsL; Ioa3s: foreach ($G4XMv as $KumKQ => $eHV4B) { goto Q3_5o; Q3_5o: if (empty($d1vkJ[$eHV4B])) { continue; } goto z20HD; z20HD: $yMC6Y = str_replace('{id}', $d1vkJ[$eHV4B]['id'], '/member/{id}'); goto jpr2Q; jpr2Q: $AZvp2 = str_replace($KumKQ, '<a href="' . $yMC6Y . '" target="_blank">@' . $d1vkJ[$eHV4B]['username'] . '</a>: ', $AZvp2); goto NIh2s; NIh2s: } goto u6Ma3; LFGb3: if (empty($XeSWB[1])) { return $AZvp2; } goto JgFFA; prhFC: $qwTRL = ModelUtil::model('member_user')->whereIn('username', array_values($G4XMv))->get()->toArray(); goto rfIWx; u6Ma3: return $AZvp2; goto iAgtk; JgFFA: $G4XMv = array(); goto o_1J0; YKzim: foreach ($qwTRL as $g3uu_) { $d1vkJ[$g3uu_['username']] = $g3uu_; } goto Ioa3s; F8Hly: if (empty($G4XMv)) { return $AZvp2; } goto prhFC; NJHJ8: preg_match_all('/@(.*?):/', $AZvp2, $XeSWB); goto LFGb3; ZufsL: $d1vkJ = array(); goto YKzim; iAgtk: } }