<?php namespace app\model; use think\Model; class GoodModel extends Model { protected $table = 'fc_good'; protected $pk = 'id'; public static $type_exchange = 1;//兑换商品 public static $type_shopping = 2;//商城商品 }