rabin 1 year ago
parent
commit
f98778b3c4
1 changed files with 4 additions and 1 deletions
  1. 4 1
      yspay/Merchant.php

+ 4 - 1
yspay/Merchant.php

@@ -91,7 +91,7 @@ class Merchant
         return $result;
     }
 
-    public function getInfo($account_id, $project_id, $id, $parent)
+    public function getInfo($account_id, $project_id, $id, $parent, $array = false)
     {
         list($project, $table) = explode('/', $parent);
         $where = array();
@@ -100,6 +100,9 @@ class Merchant
         $where['relate_id'] = $id;
         $data = Dever::db('pay/yspay_merchant')->find($where);
 
+        if ($array) {
+            return $data;
+        }
         $html = '';
         if ($data) {
             if (!$data['mid']) {