stanley-king 3 years ago
parent
commit
1c31043c95
1 changed files with 1 additions and 1 deletions
  1. 1 1
      data/model/refill_order.model.php

+ 1 - 1
data/model/refill_order.model.php

@@ -51,7 +51,7 @@ class refill_orderModel extends Model
 
     public function add_detail($mchid,$mch_order,$details,$order_state)
     {
-        return $this->table('refill_detail')->insert(['mchid' => $mchid,'mch_order' => $mch_order,'order_time' => time(),'params' => json_decode($details),'order_state' => $order_state]);
+        return $this->table('refill_detail')->insert(['mchid' => $mchid,'mch_order' => $mch_order,'order_time' => time(),'params' => json_encode($details),'order_state' => $order_state]);
     }
 
     public function edit_detail($mchid,$mch_order,$datas)