rabin 5 years ago
parent
commit
92489c1249
1 changed files with 2 additions and 1 deletions
  1. 2 1
      buy/src/Buy.php

+ 2 - 1
buy/src/Buy.php

@@ -149,7 +149,8 @@ class Buy extends Base
 
         if ($data) {
             foreach ($data as $k => $v) {
-                $num_ding = round(($v['num_ding']+$v['num_add_ding'])*$v['num_ratio_ding']);
+                $data = Dever::load('journal/api')->starDing($v);
+                $num_ding = $data['num_ding'];
                 $data[$k]['code'] = $this->url('pay', array('id' => $v['info_id'],'star_id' => $v['id']));
                 $data[$k]['msg'] = '<span class="ico-dingyue"></span>'. $num_ding .'订阅';
             }