|
@@ -10,8 +10,9 @@
|
|
|
defined('InShopNC') or exit('Access Invalid!');
|
|
|
require_once(BASE_HELPER_PATH . '/vrorder_helper.php');
|
|
|
require_once(BASE_CORE_PATH . '/framework/function/http.php');
|
|
|
+require_once(BASE_HELPER_PATH . '/refill/util.php');
|
|
|
|
|
|
-
|
|
|
+use refill\util;
|
|
|
class store_refill_ordercontrol extends BaseSellerControl
|
|
|
{
|
|
|
public function __construct()
|
|
@@ -48,6 +49,9 @@ class store_refill_ordercontrol extends BaseSellerControl
|
|
|
{
|
|
|
$num = intval($_GET['num']);
|
|
|
$card_type = intval($_GET['card_type']);
|
|
|
+ if(empty($num) || empty($card_type)) {
|
|
|
+ showDialog('请选择卡类型或抢单数量','index.php?act=store_refill_order&op=index','error');
|
|
|
+ }
|
|
|
$mod = Model('fetch_order');
|
|
|
$member_id = $_SESSION['member_id'];
|
|
|
$store_id = $_SESSION['store_id'];
|
|
@@ -101,8 +105,8 @@ class store_refill_ordercontrol extends BaseSellerControl
|
|
|
$params = ['state' => $state_type,
|
|
|
'order_sn' => $fetch_order['order_sn'],
|
|
|
'official_sn' => $official_sn];
|
|
|
- Log::record("state: {$state_type}, order_sn: {$fetch_order['order_sn']}, official_sn: {$official_sn}");
|
|
|
-// refill\util::push_notify($fetch_order['channel_name'],$params);
|
|
|
+ Log::record("state: {$state_type}, order_sn: {$fetch_order['order_sn']}, official_sn: {$official_sn}", Log::DEBUG);
|
|
|
+ refill\util::push_notify($fetch_order['channel_name'],$params);
|
|
|
$mod->processed($fetch_id,$state_type,$official_sn);
|
|
|
showDialog("成功", 'reload', 'js');
|
|
|
exit();
|