失败原因:可能专栏加的专题已被删除
修改文件:application\wap\model\special\SpecialExchange
修改方法:userExchangeSubmit()
foreach ($special_source as $k => $v) {
$task_special = Special::PreWhere()->where(['id'=>$v['source_id']])->find();
if(!$task_special) continue;
SpecialBuy::setBuySpecial('', $uid, $v['source_id'], 4, $task_special['validity'], $special_id);
}
修改文件:application\web\model\special\SpecialExchange
修改方法:userExchangeSubmit()
foreach ($special_source as $k => $v) {
$task_special = Special::PreWhere()->where(['id'=>$v['source_id']])->find();
if(!$task_special) continue;
SpecialBuy::setBuySpecial('', $uid, $v['source_id'], 4, $task_special['validity'], $special_id);
}