本文整理汇总了PHP中check::permission方法的典型用法代码示例。如果您正苦于以下问题:PHP check::permission方法的具体用法?PHP check::permission怎么用?PHP check::permission使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类check
的用法示例。
在下文中一共展示了check::permission方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: show
$url = "http://weixin.faeries-land.com/test/player.html?ask_method=json&media_id={$media_id}&Token=";
}
$code = new code();
$code->code_make($url, $media_id);
$this->show($row, $type);
} else {
$code = -1;
$msg = "error:You have to use wechat app to open! ";
$data = "null";
api_response::api_method($type, $code, $msg, $data);
}
}
public function show($row, $type)
{
$data = array('media_id' => "{$row['media_id']}", 'title' => "{$row['title']}", 'content' => "{$row['content']}", 'create_at' => "{$row['create_at']}", 'From_nickname' => "{$row['From_nickname']}", 'To_nickname' => "{$row['To_nickname']}", 'code_url' => "http://weixin.faeries-land.com/code_img/" . $row['media_id'] . ".png");
if (empty($row)) {
$code = -1;
$msg = "error:The info not exist! ";
$data = "null";
$result = api_response::api_method($type, $code, $msg, $data);
} else {
$code = 0;
$msg = "success!";
$result = api_response::api_method($type, $code, $msg, $data);
}
return $result;
}
}
$show = new check();
$show->permission();