家政小程序
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

Order.php 1005B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class Order extends Model
  5. {
  6. public $order_type = "";
  7. function __construct($order_type = "") {
  8. $this->order_type = $order_type;
  9. }
  10. protected $fillable = [
  11. 'wechat_id', // 微信号id(open_id)
  12. 'address', // 服务地址
  13. 'contact', // 联系人
  14. 'phone', //联系电话
  15. 'status', // 订单状态, 0.待处理 1.待支付 2.已支付
  16. 'price', // 订单价格
  17. 'photo', // 显示的图片
  18. 'comment_id', // 评论id
  19. 'paid_at', // 支付时间,
  20. 'classify', //订单类型,分类
  21. 'classify1', //分类1
  22. 'classify2', //分类2
  23. ];
  24. public function setFillable($fillable) {
  25. $this->fillable = $fillable;
  26. }
  27. public function getFillable() {
  28. return $this->fillable;
  29. }
  30. public function mergeFillable($fillable) {
  31. $this->fillable = array_merge($this->fillable, $fillable);
  32. }
  33. }