dever 3 年之前
父节点
当前提交
d0a17e0c06
共有 2 个文件被更改,包括 6 次插入5 次删除
  1. 1 1
      app/shop/lib/Cron.php
  2. 5 4
      app/shop/src/Yspay.php

+ 1 - 1
app/shop/lib/Cron.php

@@ -26,7 +26,7 @@ class Cron
     {
         $shop = Dever::db('shop/info')->find($v['shop_id']);
         if ($v['withdraw'] == 1 && $shop && $shop['mid'] && $shop['status'] == 1) {
-            $cash = $v['price'];//之后还要加上礼品卡的钱
+            $cash = $v['price'] * 100;//之后还要加上礼品卡的钱
             Dever::load('shop/yspay')->action($shop['mid'], $v['order_num'], 2, $cash);
         }
     }

+ 5 - 4
app/shop/src/Yspay.php

@@ -23,7 +23,7 @@ class Yspay
 	{
 		$order = Dever::order();
 
-		$result = $this->action(false, $order, 1, 1);
+		$result = $this->action('89810007372107A', $order, 2, 1);
 
 		return $result;
 	}
@@ -114,7 +114,7 @@ class Chinaums
         $result = Dever::curl($url, $body, 'post');
 
         $decryptData = $this->privateDecrypt($result);
-
+        print_r($content);
         print_r($decryptData);die;
 
         if (isset($decryptData['tzWithdrawAmtPublic'])) {
@@ -127,7 +127,7 @@ class Chinaums
     }
 
     # 提现
-    public function act($mid, $order, $cash = 1, $type = 1, $notify = '')
+    public function act($mid, $order, $type = 2, $cash = 1, $notify = '')
     {
     	$url = $this->host() . 'uisouterfront/withdrawback/process';
 
@@ -150,7 +150,8 @@ class Chinaums
 
         $result = Dever::curl($url, $body, 'post');
         $decryptData = $this->privateDecrypt($result);
-
+        print_r($content);
+        print_r($decryptData);die;
         if (isset($decryptData['responseCode']) && ($decryptData['responseCode'] == '000000' || $decryptData['responseCode'] == '000001')) {
         	return 'ok';
         } else {