<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Tecmz; class TecmzUtil { public static function url() { return 'https://api.tecmz.com'; } public static function instance($cDbH3) { $MK0sx = modstart_config(); return Tecmz::instance($MK0sx->getWithEnv("{$cDbH3}AppId"), $MK0sx->getWithEnv("{$cDbH3}AppSecret")); } public static function asr($HWA34, $KSD0x) { goto VbAbF; pzg3f: $AlG38 = $MK0sx->getWithEnv('softApiAsrAppSecret'); goto PzKbH; lN1AQ: if ($rhLXE['code']) { return null; } goto vpdNG; vpdNG: return $rhLXE['data']['text']; goto BuBfW; NiQuu: $D7tC2 = Tecmz::instance($MviOF, $AlG38); goto Pmk63; lPY9q: $MviOF = $MK0sx->getWithEnv('softApiAsrAppId'); goto pzg3f; Pmk63: $rhLXE = $D7tC2->asr($HWA34, base64_encode($KSD0x)); goto lN1AQ; VbAbF: $MK0sx = modstart_config(); goto lPY9q; PzKbH: if (empty($MviOF)) { $MviOF = $MK0sx->getWithEnv('softApiDefaultAppId'); $AlG38 = $MK0sx->getWithEnv('softApiDefaultAppSecret'); } goto NiQuu; BuBfW: } public static function express($HWA34, $iiMZF) { goto qLNVY; qLNVY: $MK0sx = modstart_config(); goto Z_4pu; Vku3z: if ($rhLXE['code']) { return array(); } goto lgj7V; vojx2: $D7tC2 = Tecmz::instance($MviOF, $AlG38); goto fUOLA; lgj7V: return $rhLXE['data']['list']; goto dZZaL; HIVLv: if (empty($MviOF)) { $MviOF = $MK0sx->getWithEnv('softApiDefaultAppId'); $AlG38 = $MK0sx->getWithEnv('softApiDefaultAppSecret'); } goto vojx2; fUOLA: $rhLXE = $D7tC2->express($HWA34, $iiMZF); goto Vku3z; wNr2A: $AlG38 = $MK0sx->getWithEnv('softApiExpressAppSecret'); goto HIVLv; Z_4pu: $MviOF = $MK0sx->getWithEnv('softApiExpressAppId'); goto wNr2A; dZZaL: } }