<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Tecmz; class TecmzUtil { public static function url() { return 'https://api.tecmz.com'; } public static function instance($h1WJp) { $XhVgh = modstart_config(); return Tecmz::instance($XhVgh->getWithEnv("{$h1WJp}AppId"), $XhVgh->getWithEnv("{$h1WJp}AppSecret")); } public static function asr($OUt2n, $p6yeI) { goto DSNtA; W1j9I: if ($Gs3Xd['code']) { return null; } goto CzQyM; YDsE3: $SqB2I = Tecmz::instance($uCG2o, $YN6pq); goto gctqR; N7ph6: $YN6pq = $XhVgh->getWithEnv('softApiAsrAppSecret'); goto lXBTg; CzQyM: return $Gs3Xd['data']['text']; goto QPO0R; lXBTg: if (empty($uCG2o)) { $uCG2o = $XhVgh->getWithEnv('softApiDefaultAppId'); $YN6pq = $XhVgh->getWithEnv('softApiDefaultAppSecret'); } goto YDsE3; qtiZ7: $uCG2o = $XhVgh->getWithEnv('softApiAsrAppId'); goto N7ph6; gctqR: $Gs3Xd = $SqB2I->asr($OUt2n, base64_encode($p6yeI)); goto W1j9I; DSNtA: $XhVgh = modstart_config(); goto qtiZ7; QPO0R: } public static function express($OUt2n, $iGwHO) { goto GgFKo; CGF0i: if (empty($uCG2o)) { $uCG2o = $XhVgh->getWithEnv('softApiDefaultAppId'); $YN6pq = $XhVgh->getWithEnv('softApiDefaultAppSecret'); } goto wCKvw; wCKvw: $SqB2I = Tecmz::instance($uCG2o, $YN6pq); goto QPAvM; tbfRh: $YN6pq = $XhVgh->getWithEnv('softApiExpressAppSecret'); goto CGF0i; GgFKo: $XhVgh = modstart_config(); goto efN8h; aeVUW: if ($Gs3Xd['code']) { return array(); } goto uEst0; efN8h: $uCG2o = $XhVgh->getWithEnv('softApiExpressAppId'); goto tbfRh; uEst0: return $Gs3Xd['data']['list']; goto rxrcf; QPAvM: $Gs3Xd = $SqB2I->express($OUt2n, $iGwHO); goto aeVUW; rxrcf: } }