Account_password.php 393 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace App\Models;
  3. use DB;
  4. /**
  5. *
  6. */
  7. class Account_password extends BaseModel {
  8. protected $table = 'account_password';
  9. public $timestamps = false;
  10. //更新
  11. function updateInfo($data, $aid) {
  12. //DB::connection()->enableQueryLog();
  13. $res = $this->where('account_identity', $aid)->update($data);
  14. if (!$res) {
  15. return -4010000102; //更新失败
  16. }
  17. return 1;
  18. }
  19. }
  20. ?>