kevin_zhangl vor 3 Jahren
Ursprung
Commit
83ac081269
2 geänderte Dateien mit 27 neuen und 11 gelöschten Zeilen
  1. 13 1
      common/helpers/Tool.php
  2. 14 10
      common/models/ApproachOrderCall.php

+ 13 - 1
common/helpers/Tool.php

@@ -499,7 +499,19 @@ class Tool {
     public static function approachOrderCall($call)
     {
         $model = new ApproachOrderCall();
-        $model->load($call);
+        $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->save();
     }
 }

+ 14 - 10
common/models/ApproachOrderCall.php

@@ -9,17 +9,21 @@ use Yii;
  * This is the model class for collection "ar_approach_order_call".
  *
  * @property \MongoDB\BSON\ObjectID|string $_id
- * @property mixed $user_name
- * @property mixed $opt_type
- * @property mixed $return_result
- * @property mixed $success_times
- * @property mixed $fail_times
- * @property mixed $device
- * @property mixed $request_route
- * @property mixed $ip
+ * @property mixed $id
+ * @property mixed $domain
+ * @property mixed $status
+ * @property mixed $reference
+ * @property mixed $amount
  * @property mixed $created_at
- * @property mixed $user_agent
- * @property mixed $period_num
+ * @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
+
  */
 class ApproachOrderCall extends MongoActiveRecord
 {