xxxrrrdddd 3 年之前
父节点
当前提交
c1d81010d7
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      application/api/controller/MobileController.php
  2. 1 1
      application/common/model/Mobile.php

+ 1 - 0
application/api/controller/MobileController.php

@@ -205,6 +205,7 @@ class MobileController extends UserApi
         $order['amount_hd'] = $mobile['amount'];
         $order['amount_charge'] = $mobile['amount_charge'];
         $order['amount'] = $mobile['amount'];
+        $order['amount_di'] = $mobile['amount_di'];
         $order['type'] = $mobile['type'];
         unset($order['county'], $order['status'], $order['sms_code']);
         $mobileOrder = (new MobileOrder);

+ 1 - 1
application/common/model/Mobile.php

@@ -153,7 +153,7 @@ class Mobile extends Model
     public static function show(){
         $model=new self();
         $model->with(['info']);
-        $model->where('status','<>',2);
+        $model->whereIn('status',[0,1,3]);
         return $model;
     }