PayWithdrawOrder.php 671 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * Author: 芸众商城 www.yunzshop.com
  5. * Date: 2017/3/20
  6. * Time: 上午10:43
  7. */
  8. namespace app\common\models;
  9. use app\backend\models\BackendModel;
  10. class PayWithdrawOrder extends BackendModel
  11. {
  12. public $table = 'yz_pay_withdraw_order';
  13. /**
  14. * 可以被批量赋值的属性.
  15. *
  16. * @var array
  17. */
  18. protected $fillable = ['uniacid', 'member_id', 'int_order_no', 'out_order_no', 'status', 'type', 'price'];
  19. public static function getOrderInfo($orderno)
  20. {
  21. return self::uniacid()
  22. ->where('out_order_no', $orderno)
  23. ->orderBy('id', 'desc')
  24. ->first();
  25. }
  26. }