用tp5編寫API接口(帳戶登陸/列表)--小程序

建立一個tp5框架,添加一個登陸的方法,先驗證帳戶和密碼是否爲空,不爲空則驗證是什麼用戶登陸(學生/老師)php 在小程序中調用登陸的方法數據庫 public function stulogin(){ $no = input('?no') ? input('no') : ''; $pwd = input('?pwd') ? input('pwd') : ''; if(empty($no
相關文章
相關標籤/搜索