|
- <?php
- require_once __DIR__ . '/../HotelLib.php';
-
- /**
- * Created by PhpStorm.
- * User: Administrator
- * Date: 2016/12/1
- * Time: 14:10
- */
- class ChangePWC extends HotelLib
- {
- function changePW($user_id,$md_agoPwd,$md_nowPwd){
- $sql="CALL HT_CHANGE_PASSWORD(".$user_id.",'".$md_agoPwd."','".$md_nowPwd."')";
- writeLog(__FUNCTION__ . " sql= " . $sql);
- $rowset = $this->DBTool->queryBySql($sql);
- $data['code'] = $rowset['code'];
- $data['info'] = $rowset['info'];
- return $data;
- }
- }
- //$obj = new ChangePWC();
- //$data = $obj ->changePW(27,);
- //echo json_encode($data);
|