diff --git a/app/channel/service/system/Meicheng.php b/app/channel/service/system/Meicheng.php
index 3e142c5..1643ebb 100644
--- a/app/channel/service/system/Meicheng.php
+++ b/app/channel/service/system/Meicheng.php
@@ -120,9 +120,12 @@ class Meicheng extends Core
unset($request['sign']);
unset($request['s_order']);
$sign = strtoupper($this->_sign($request, array('userid', 'orderid', 'sporderid', 'merchantsubmittime', 'resultno')));
- if ($sign != $data['sign']) {
- return false;
+ if(!isset($data['query_status']) ){
+ if ($sign != $data['sign']) {
+ return false;
+ }
}
+
$result = array();
$result['cash'] = 1;
if ($data['resultno'] == 1) {
@@ -180,17 +183,19 @@ class Meicheng extends Core
$request['sign'] = $this->_sign($request, array('userid', 'sporderid'));
$url = $this->host . 'searchpay.do';
- $response = $this->curl('post', $url, $request);
+ $response = $this->curl('get', $url, $request);
$log['type'] = 'query_response';
$log['data'] = $response;
$log['config'] = $this->data;
$this->log($log);
- $array = $this->json_decode($response);
+ $array = (array) simplexml_load_string($response);
$result = array();
+ $result = $array;
$result['status'] = 4;
+ $result['query_status'] = 1;
if (isset($array['resultno']) ) {
if($array['resultno'] == '1'){
$result['status'] = 2;
diff --git a/app/openapi/controller/Test.php b/app/openapi/controller/Test.php
index 3197756..265e75a 100644
--- a/app/openapi/controller/Test.php
+++ b/app/openapi/controller/Test.php
@@ -7,7 +7,7 @@ use app\channel\service\CardService;
use app\channel\service\ChannelService;
use app\channel\service\KamiService;
use app\channel\service\ProductService;
-use app\gateway\controller\api\Notify;
+use app\gateway\controller\v4\Notify;
use app\gateway\service\RedisService;
use app\kami\controller\getcookie\KaiDianBao;
use app\kami\controller\getcookie\ZhongZhao;
@@ -181,20 +181,28 @@ class Test extends Core
public function test()
{
+ $orde = OrderService::instance()->db()->where(['status'=>4,'cid'=>14])->select()->toArray();
+ if($orde){
+ foreach ($orde as $k=>$v){
+ $channelService = ChannelService::instance();
+ $result = $channelService->call('query', $v['cid'], $v);
+
+ Log::write('test', 'runss', $result);
+
+// Log::write('');
+// var_dump($result);die;
+ if ($result['status'] != 4) {
+
+ Log::write('test', 'runs', $result);
+ $notifyClass = new Notify($this->app);
+ $notifyClass->queue_query($v['order_id'], $result);
+
+ var_dump([$v['order_id'],$result['status']]);
-
- $LockCardService = LockCardService::instance();
-
-
-// $cardno = $response['kami']['cardno'];
-// $cardpwd = $response['kami']['cardpwd'];
-// $expire_time = $response['kami']['expired'];
-
- $suoka = $LockCardService->call('',12, 2409301790976058, 123456, 123, 100,'Whymcl');
-
-
- return $suoka;
+ }
+ }
+ }
}
@@ -203,6 +211,10 @@ class Test extends Core
+
+
+
+
public function stat_amount()
{
$day = input('day');
diff --git a/app/setting/view/mobile_mnp/index.html b/app/setting/view/mobile_mnp/index.html
index dc4eb51..8136e35 100644
--- a/app/setting/view/mobile_mnp/index.html
+++ b/app/setting/view/mobile_mnp/index.html
@@ -1,7 +1,7 @@
{extend name="../../admin/view/table"}
{block name="button"}
-
+
{/block}