|
@@ -337,6 +337,8 @@ class providerControl extends SystemControl
|
|
|
|
|
|
public function refresh_priceOp()
|
|
|
{
|
|
|
+ $publisher = new message\publisher();
|
|
|
+ $publisher->modify_refill_channel();
|
|
|
showMessage('操作完成');
|
|
|
}
|
|
|
|
|
@@ -359,7 +361,7 @@ class providerControl extends SystemControl
|
|
|
$new_cfg = $this->cfg_format($_POST, $cfg);
|
|
|
$effect_time = $_POST['effect_time'] ?? 0;
|
|
|
if($effect_time > 0) {
|
|
|
- $effect_time = time() + $effect_time;
|
|
|
+ $effect_time = strtotime($effect_time);
|
|
|
}
|
|
|
$chprice_helper = new refill\chprice_helper();
|
|
|
$ret = $chprice_helper->update($price['price_id'], $new_cfg, $effect_time, $admininfo['name']);
|