Commit b18cb286 authored by 吴贤德's avatar 吴贤德

中心后台:分前端授权机制———已被标记为删除状态的分前端授权码可以被重复利用。

parent 16644915
This diff is collapsed.
......@@ -64,7 +64,7 @@ class FrontAction extends CommonAction{
$this->display();
}
function GetCodeFromLicense(){
$sql="SELECT code from sh_license sl where code not in (SELECT code from sh_hotel_device);";
$sql="SELECT code from sh_license sl where code not in (SELECT code from sh_hotel_device where status<2);";
$arr = M('')->query($sql);
if (!empty($arr)){
shuffle($arr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment