1 Star 0 Fork 5

doo/lmshop_kj

forked from YHGJ/lmshop_kj 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
test.php 2.46 KB
一键复制 编辑 原始数据 按行查看 历史
Administrator 提交于 2018-06-21 11:17 . test
<?php
//发送请求操作仅供参考,不为最佳实践
// function request($url,$params){
// $ch = curl_init();
// $this_header = array("content-type: application/x-www-form-urlencoded;charset=UTF-8");
// curl_setopt($ch,CURLOPT_HTTPHEADER,$this_header);
// curl_setopt($ch, CURLOPT_URL, $url);
// curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (compatible; MSIE 5.01; Windows NT 5.0)');
// curl_setopt($ch, CURLOPT_TIMEOUT, 30);
// curl_setopt($ch, CURLOPT_POST, 1);
// curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
// curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);//如果不加验证,就设false,商户自行处理
// curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
// $output = curl_exec($ch);
// curl_close($ch);
// return $output;
// }
// $surl = 'https://cashier.allinpay.com/usercenter/merchant/UserInfo/reg.do';
// $signType = '0';
// $merchantId = "008430148167024";
// $partnerUserId = 7;
// $str = "&signType=".$signType."&merchantId=".$merchantId."&partnerUserId=".$partnerUserId."&key=lmbestshop&";
// $signMsg = md5($str);
// $signMsg = strtoupper($signMsg);
// $params = array();
// $params["signType"] = $signType;
// $params["merchantId"] = $merchantId;
// $params["partnerUserId"] = $partnerUserId;
// $params["signMsg"] = $signMsg;
// $paramsStr = "signType=".$signType."&merchantId=".$merchantId."&partnerUserId=".$partnerUserId."&signMsg=".$signMsg;
// $rsp = request($surl, $paramsStr);
// $rspArray = json_decode($rsp, true);
// print_r($rspArray);
// $strY = "&merchantId=".$rspArray['merchantId']."&signType=".$rspArray['signType']."&userId=".$rspArray['userId']."&resultCode=".$rspArray['resultCode']."&returnDatetime=".$rspArray['returnDatetime']."&key=lmbestshop&";
// $signMsg1 = md5($str);
// $signMsg1 = strtoupper($signMsg1);
// print_r($signMsg1);
// define('IN_ECS', true);
// include_once(dirname(__FILE__) . '/includes/init.php');
// $sql = 'select log_id from ' . $GLOBALS['ecs']->table('order_info') . ' left join '.$GLOBALS['ecs']->table('pay_log').' on '.$GLOBALS['ecs']->table('order_info').'.order_id='.$GLOBALS['ecs']->table('pay_log').'.order_id where order_sn = \'2017042817600366526\'';
// print_r($sql);
// $order_pay = $GLOBALS['db']->getRow($sql);
// print_r($order_pay);
require_once(dirname(__FILE__) . '/api/erp/erp.php');
$erp = new ERPApi();
$query["src_tid"] = '2018061411231866947';
$rs = $erp->query_order($query);
$erp_order = json_decode(json_encode($rs),true);
print_r($erp_order);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/dzh19951015/lmshop_kj.git
git@gitee.com:dzh19951015/lmshop_kj.git
dzh19951015
lmshop_kj
lmshop_kj
master

搜索帮助