|
@@ -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 .'订阅';
|
|
|
}
|