CommonModel.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace app\model;
  3. //不是模型表,只是一个错误码
  4. class CommonModel
  5. {
  6. //错误码
  7. public static $success= 0;//请求成功
  8. public static $error_token = 1003;//token错误
  9. public static $error_param = 1004;//参数错误
  10. public static $error_default = 1005;//业务错误
  11. public static $error_other = 1006;//其他错误
  12. //特殊错误码
  13. public static $error_layer = 1010;//弹出
  14. public static $error_jump = 1011;//重定向
  15. //是否删除
  16. public static $del_normal=0;//未删除
  17. public static $del_deleted=1;//已删除
  18. //状态
  19. public static $status_normal=1;//启用
  20. public static $status_disable=0;//禁用
  21. //置顶
  22. public static $top_yes = 1;//置顶
  23. public static $top_no = 0;//不置顶
  24. //库存操作来源
  25. public static $source_admin = 1 ;//后台操作
  26. public static $source_account = 2 ;//客户操作
  27. //订单状态:0待支付,1支付失败,2支付成功待发货,3已发货,4已收货
  28. public static $order_status_wait_pay = 0;
  29. public static $order_status_pay_fail = 1;
  30. public static $order_status_not_deliver = 2;
  31. public static $order_status_deliver = 3;
  32. public static $order_status_receipt = 4;
  33. //购买的类型,1购买服务,2购买商城商品
  34. public static $pay_type_service = 1;
  35. public static $pay_type_shopping_good = 2;
  36. }