kevin_zhangl 3 лет назад
Родитель
Сommit
9713169043
2 измененных файлов с 7 добавлено и 54 удалено
  1. 2 13
      common/helpers/Tool.php
  2. 5 41
      common/models/ApproachOrderCall.php

+ 2 - 13
common/helpers/Tool.php

@@ -499,19 +499,8 @@ class Tool {
     public static function approachOrderCall($call)
     {
         $model = new ApproachOrderCall();
-        $model->id = $call['id'];
-        $model->domain = $call['domain'];
-        $model->status = $call['status'];
-        $model->reference = $call['reference'];
-        $model->amount = $call['amount'];
-        $model->created_at = $call['created_at'];
-        $model->paid_at = $call['paid_at'];
-        $model->channel = $call['channel'];
-        $model->currency = $call['currency'];
-        $model->ip_address = $call['ip_address'];
-        $model->metadata = $call['metadata'];
-        $model->customer = $call['customer'];
-        $model->email = $call['email'];
+        $model->event = $call['event'];
+        $model->data = $call['data'];
         $model->save();
     }
 }

+ 5 - 41
common/models/ApproachOrderCall.php

@@ -9,20 +9,8 @@ use Yii;
  * This is the model class for collection "ar_approach_order_call".
  *
  * @property \MongoDB\BSON\ObjectID|string $_id
- * @property mixed $id
- * @property mixed $domain
- * @property mixed $status
- * @property mixed $reference
- * @property mixed $amount
- * @property mixed $created_at
- * @property mixed $paid_at
- * @property mixed $channel
- * @property mixed $currency
- * @property mixed $ip_address
- * @property mixed $metadata
- * @property mixed $return_result
- * @property mixed $customer
- * @property mixed $email
+ * @property mixed $event
+ * @property mixed $data
 
  */
 class ApproachOrderCall extends MongoActiveRecord
@@ -57,19 +45,7 @@ class ApproachOrderCall extends MongoActiveRecord
     {
         return [
             'id',
-            'domain',
-            'status',
-            'reference',
-            'amount',
-            'created_at',
-            'paid_at',
-            'channel',
-            'currency',
-            'ip_address',
-            'metadata',
-            'return_result',
-            'customer',
-            'email',
+            'data',
         ];
     }
 
@@ -79,20 +55,8 @@ class ApproachOrderCall extends MongoActiveRecord
     public function attributeLabels()
     {
         return [
-            'id' => 'PayID',
-            'domain' => 'domain',
-            'status' => 'status',
-            'reference' => 'reference',
-            'amount' => 'amount(kobo)',
-            'created_at' => 'created_at',
-            'paid_at' => 'paid_at',
-            'channel' => 'channel',
-            'currency' => 'currency',
-            'ip_address' => 'ip_address',
-            'metadata' => 'metadata',
-            'return_result' => 'return_result',
-            'customer' => 'customer',
-            'email' => 'email',
+            'event' => 'event',
+            'data' => 'data',
         ];
     }