Skip to content
binsee edited this page Sep 20, 2014 · 3 revisions

##errCode.php

当调用API接口失败时,可以用此类来换取失败原因的中文说明。

使用方法:

include "errCode.php";

$ret=ErrCode::getErrText(48001);

if ($ret) 
	echo $ret;
else 
    echo "未找到对应的内容";
Clone this wiki locally