新版订单消耗系统

PastOrder.php 379B

123456789101112131415161718192021222324
  1. <?php
  2. namespace App\Models;
  3. use App\RedisModel;
  4. use Illuminate\Database\Eloquent\Model;
  5. use DB;
  6. class PastOrder extends Model
  7. {
  8. protected $table = 'order_past';
  9. public $timestamps = false;
  10. /**
  11. * 添加订单
  12. */
  13. public static function addData($data)
  14. {
  15. $id = DB::table('order_past')->insertGetId($data);
  16. return $id;
  17. }
  18. }