smsSendLimitModel.php 967 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * Author: 芸众商城 www.yunzshop.com
  5. * Date: 17/3/3
  6. * Time: 上午7:20
  7. */
  8. namespace app\frontend\modules\member\models;
  9. use app\backend\models\BackendModel;
  10. class smsSendLimitModel extends BackendModel
  11. {
  12. public $table = 'yz_sms_send_limit';
  13. public $timestamps = false;
  14. public static function getMobileInfo($uniacid, $mobile)
  15. {
  16. return self::where('uniacid', $uniacid)
  17. ->where('mobile', $mobile)
  18. ->first();
  19. }
  20. /**
  21. * 添加数据
  22. *
  23. * @param $data
  24. */
  25. public static function insertData($data)
  26. {
  27. self::insert($data);
  28. }
  29. /**
  30. * 更新更新短信条数,时间
  31. *
  32. * @param $where
  33. * @param $data
  34. */
  35. public static function updateData($where, $data)
  36. {
  37. self::where('uniacid', $where['uniacid'])
  38. ->where('mobile', $where['mobile'])
  39. ->update($data);
  40. }
  41. }