Product.php 402 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace app\common\model\plus\agent;
  3. use app\common\model\BaseModel;
  4. /**
  5. * 分销商用户模型
  6. */
  7. class Product extends BaseModel
  8. {
  9. protected $name = 'agent_product';
  10. protected $pk = 'product_id';
  11. /**
  12. * 超管用户信息
  13. */
  14. public static function detail($product_id)
  15. {
  16. return (new static())->where('product_id', '=', $product_id)->find();
  17. }
  18. }