Passed
Branch master (a107f0)
by graychen
03:51
created
src/v1/models/OrderDeposit.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use common\helpers\utils\DataPack;
6 6
 use common\models\Order;
7
-use Yii;
8 7
 use yii\base\Model;
9 8
 use yii\behaviors\TimestampBehavior;
10 9
 use yii\web\ConflictHttpException;
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -14,12 +14,12 @@  discard block
 block discarded – undo
14 14
  */
15 15
 class OrderDeposit extends Model
16 16
 {
17
-    public $data;//数据
18
-    public $customerId;//店铺id
19
-    public $sign;//签名
20
-    public $timestamp;//当前时间戳
21
-    public $orderId;//京东订单号
22
-    public $buyNum;//购买数量
17
+    public $data; //数据
18
+    public $customerId; //店铺id
19
+    public $sign; //签名
20
+    public $timestamp; //当前时间戳
21
+    public $orderId; //京东订单号
22
+    public $buyNum; //购买数量
23 23
     public $skuId; //对应京东的商品 skuId
24 24
     public $brandId; //对应京东游戏品牌 ID
25 25
     public $userIp; //用户 ip 地址
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     public $gameAccount; //游戏账号
28 28
     public $permit; //通行证
29 29
     public $gameAccountType; //账号类型
30
-    public $chargeType;//充值类型
30
+    public $chargeType; //充值类型
31 31
     public $gameArea; //游戏区
32 32
     public $gameServer; //游戏所在服
33 33
     public $features; //json格式字符串
Please login to merge, or discard this patch.
src/v1/config/rules.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
     [
7 7
         'class' => 'yii\rest\UrlRule',
8 8
         'controller' => 'jd/v1/deposit',
9
-        'only' => ['create','status'],
9
+        'only' => ['create', 'status'],
10 10
         'extraPatterns' => [
11 11
             'POST deposits' => 'create',
12 12
             'POST status' => 'status',
Please login to merge, or discard this patch.