OrderOperationLog.php 603 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * Author: 芸众商城 www.yunzshop.com
  5. * Date: 2017/3/14
  6. * Time: 下午1:49
  7. */
  8. namespace app\common\models\order;
  9. use app\common\models\BaseModel;
  10. class OrderOperationLog extends BaseModel
  11. {
  12. public $table = 'yz_order_operation_log';
  13. protected $guarded = [''];
  14. public static function insertOrderOperationLog($log)
  15. {
  16. OrderOperationLog::create($log);
  17. }
  18. public static function getOrderOperationLog($order_id)
  19. {
  20. $log = OrderOperationLog::Uniacid()->where('order_id', '=', $order_id)->get();
  21. return $log;
  22. }
  23. }