<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Tecmz; class TecmzUtil { public static function url() { return 'https://api.tecmz.com'; } public static function instance($YIyXG) { $PnQiC = modstart_config(); return Tecmz::instance($PnQiC->getWithEnv("{$YIyXG}AppId"), $PnQiC->getWithEnv("{$YIyXG}AppSecret")); } public static function asr($V4Qg5, $G_iFd) { goto S4Vts; QiduV: $yCUD1 = $UZNYc->asr($V4Qg5, base64_encode($G_iFd)); goto IHHnF; aPpDg: $uDgvZ = $PnQiC->getWithEnv('softApiAsrAppId'); goto o1FSf; S4Vts: $PnQiC = modstart_config(); goto aPpDg; IHHnF: if ($yCUD1['code']) { return null; } goto IBFG2; o1FSf: $RUzLU = $PnQiC->getWithEnv('softApiAsrAppSecret'); goto sPeRz; IBFG2: return $yCUD1['data']['text']; goto UeeI7; E39PK: $UZNYc = Tecmz::instance($uDgvZ, $RUzLU); goto QiduV; sPeRz: if (empty($uDgvZ)) { $uDgvZ = $PnQiC->getWithEnv('softApiDefaultAppId'); $RUzLU = $PnQiC->getWithEnv('softApiDefaultAppSecret'); } goto E39PK; UeeI7: } public static function express($V4Qg5, $dSVyY) { goto xVuS5; guzlv: if ($yCUD1['code']) { return array(); } goto mENBa; mENBa: return $yCUD1['data']['list']; goto n3Y1S; xVuS5: $PnQiC = modstart_config(); goto Zft3M; Zft3M: $uDgvZ = $PnQiC->getWithEnv('softApiExpressAppId'); goto PeXWt; OA633: $yCUD1 = $UZNYc->express($V4Qg5, $dSVyY); goto guzlv; cVVvO: $UZNYc = Tecmz::instance($uDgvZ, $RUzLU); goto OA633; PeXWt: $RUzLU = $PnQiC->getWithEnv('softApiExpressAppSecret'); goto ArGrG; ArGrG: if (empty($uDgvZ)) { $uDgvZ = $PnQiC->getWithEnv('softApiDefaultAppId'); $RUzLU = $PnQiC->getWithEnv('softApiDefaultAppSecret'); } goto cVVvO; n3Y1S: } }