本文整理汇总了PHP中Error::getErrMsg方法的典型用法代码示例。如果您正苦于以下问题:PHP Error::getErrMsg方法的具体用法?PHP Error::getErrMsg怎么用?PHP Error::getErrMsg使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Error
的用法示例。
在下文中一共展示了Error::getErrMsg方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addEvent
public function addEvent()
{
$_POST["ecid"] = session("ecid");
if (M("company_event_response")->data($_POST)->add()) {
$result["status"] = Error::SUCCESS_OK;
} else {
$result["status"] = Error::ERROR_ADD_HANDLE_ERR;
$result["info"] = Error::getErrMsg(Error::ERROR_ADD_HANDLE_ERR);
}
$this->ajaxReturn($result, "JSON");
}
示例2: deleteGroup
public function deleteGroup()
{
if (!IS_POST) {
_404('页面不存在', U('index'));
}
$newsid = M("company_" . session("ecid") . "_material_group")->where("id=" . $_POST["id"])->select();
$newsidArr = explode(",", $newsid[0]["materialID"]);
for ($i = 0; $i < count($newsidArr); $i++) {
M("company_" . session("ecid") . "_material")->where("id=" . $newsidArr[$i])->delete();
}
if (M("company_" . session("ecid") . "_material_group")->where("id=" . $_POST["id"])->delete()) {
$result["status"] = Error::SUCCESS_OK;
} else {
$result["status"] = Error::ERROR_DELETE_HANDLE_ERR;
$result["info"] = Error::getErrMsg(Error::ERROR_DELETE_HANDLE_ERR);
}
$this->ajaxReturn($result, "JSON");
}
示例3: allDelete
public function allDelete()
{
if (!IS_POST) {
_404('页面不存在', U('poi'));
}
import('@.BaiduMap.BaiduMap');
$baiduMap = new BaiduMap(session("ecid"));
$response = $baiduMap->delPoi($_POST["id"]);
if ($response->status == 0) {
$arr = explode(",", $_POST["id"]);
for ($i = 0; $i < count($arr); $i++) {
M("Company_location_set")->where("poiID = '" . $arr[$i] . "'")->delete();
}
$result["status"] = Error::SUCCESS_OK;
} else {
$result["status"] = Error::ERROR_DELETE_HANDLE_ERR;
$result["info"] = Error::getErrMsg(Error::ERROR_DELETE_HANDLE_ERR);
}
$this->ajaxReturn($result, "JSON");
}
示例4: deleteRiviewRule
public function deleteRiviewRule()
{
if (!IS_POST) {
_404('页面不存在', U('index'));
}
import("ORG.Error.Error");
if (M("Company_fw_reply_review")->where("id = '" . $_POST["id"] . "'")->delete()) {
$result["status"] = Error::SUCCESS_OK;
} else {
$result["status"] = Error::ERROR_DELETE_HANDLE_ERR;
$result["info"] = Error::getErrMsg(Error::ERROR_DELETE_HANDLE_ERR);
}
$this->ajaxReturn($result, "JSON");
}
示例5: deleteMenu
public function deleteMenu()
{
if (!IS_POST) {
_404('页面不存在', U('index'));
}
import('@.WechatMenu.MenuDbControl');
$menuControl = new MenuDbControl(session("ecid"));
$code = $menuControl->delMenuItem($_POST["id"]);
$this->ajaxReturn($code, Error::getErrMsg($code), 0);
}