Pay_password.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. *------Create thems Model------
  4. *------SCWPHP Version 1.0.0------
  5. *------Dev Model Jions------
  6. *------Create Time 2017-06-21 16:01:32------
  7. */
  8. namespace App\Commons\Model;
  9. use \System\Model;
  10. class Pay_password extends Model {
  11. protected $table = 'pay_password';
  12. /**
  13. * 支付密码查询
  14. *
  15. * @access public
  16. * @param mixed $select 查询字段
  17. * @param mixed $where 查询条件
  18. * @return array JsonString
  19. */
  20. public function payPassword ($select, $where) {
  21. $result = $this
  22. -> select($select)
  23. -> where($where)
  24. -> first();
  25. return $result;
  26. }
  27. /**
  28. * 支付密码修改
  29. *
  30. * @access public
  31. * @param mixed $where 查询条件
  32. * @param mixed $updateData 修改字段
  33. * @return array JsonString
  34. */
  35. public function updatePayPassword ($where, $updateData) {
  36. $result = $this
  37. -> where($where)
  38. -> update($updateData);
  39. return $result;
  40. }
  41. }