xieruidong 2 роки тому
батько
коміт
c54eb3106f
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      application/service/byte_dance/ByteDancePay.php

+ 1 - 1
application/service/byte_dance/ByteDancePay.php

@@ -42,7 +42,7 @@ class ByteDancePay implements ByteDanceInterface {
         $data=$this->data;
         $data['sign']=$this->sign($data);
         $order=ByteDance::httpPost('https://developer.toutiao.com/api/apps/ecpay/v1/create_order',$data);
-        $obj=new ByteDanceResult();
+        $obj=ByteDanceResult::make();
         foreach ($order as $key=>$item){
             $obj->offsetSet($key,$item);
         }