Browse Source

admin update

xiaoyu 3 years ago
parent
commit
2947016db0

+ 3 - 1
admin/control/provider.php

@@ -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']);

+ 1 - 1
admin/templates/default/provider.index.php

@@ -132,7 +132,7 @@
                 <th>调款操作</th>
                 <th class="align-right">订单成功后余额</th>
                 <th class="align-right">接口查询余额</th>
-                <th>折扣操作</th>
+                <th>通道折扣</th>
                 <th class="align-center">操作</th>
             </tr>
             </thead>

+ 7 - 2
admin/templates/default/provider.price.set.php

@@ -35,7 +35,6 @@
         vertical-align: middle;
         clear: both;
         padding: 0 4px;
-        vertical-align: middle;
         margin-right: 4px;
     }
 
@@ -104,7 +103,8 @@
             </tr>
             <tr class="noborder">
                 <td class="vatop rowform">
-                    <input type="text" name="effect_time" placeholder="延迟生效秒数,立即生效填0" value="0">
+                    <input class="txt date" type="text" value="0" id="startTime" name="effect_time" placeholder="" autocomplete="off" style="width:120px"/>
+                    <span style="color: red">延迟生效填生效日期,立即生效填0</span>
                 </td>
                 <td class="vatop tips"></td>
             </tr>
@@ -164,6 +164,7 @@
         </table>
     </form>
 </div>
+<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/laydate/laydate.js"></script>
 <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/dialog/dialog.js" id="dialog_js"
         charset="utf-8"></script>
 <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/jquery.ui.js"></script>
@@ -173,6 +174,10 @@
       id="cssfile2"/>
 <script type="text/javascript">
     $(function () {
+        laydate.render({
+            elem: '#startTime',
+            type: 'datetime'
+        });
         //按钮先执行验证再提交表单
         $("#submitBtn").click(function () {
             if ($("#price_form").valid()) {