OA关联切换正式

master
zhanglingsheng 5 years ago
parent 87ee527a01
commit 728f78db09

@ -19,6 +19,11 @@ return array(
'GET_INFO_KEY' => 'wmkjtx_kj213', 'GET_INFO_KEY' => 'wmkjtx_kj213',
'OA' => array(
'testUrl' => 'http://test.oa.76ba.com',
'formalUrl' => 'http://test.oa.76ba.com',
),
/* 文件上传相关配置 */ /* 文件上传相关配置 */
'DOWNLOAD_UPLOAD' => array( 'DOWNLOAD_UPLOAD' => array(
'mimes' => '', //允许上传的文件MiMe类型 'mimes' => '', //允许上传的文件MiMe类型

@ -110,9 +110,9 @@ class PromoteController extends ThinkController
$arr['pageSize'] = 1000; $arr['pageSize'] = 1000;
ksort($arr); ksort($arr);
reset($arr); reset($arr);
$sign = md5(http_build_query($arr) . 'wmkjtx_kj213'); $sign = md5(http_build_query($arr) . C('GET_INFO_KEY'));
$arr['sign'] = $sign; $arr['sign'] = $sign;
$re_data = curl_post('http://test.oa.76ba.com/api/wanmeng/platformAccount', $arr); $re_data = curl_post(C('OA.formalUrl') . '/api/wanmeng/platformAccount', $arr);
$re_data = json_decode($re_data, true); $re_data = json_decode($re_data, true);
if ($re_data['code'] == 1) { if ($re_data['code'] == 1) {
$oa = $re_data['data']; $oa = $re_data['data'];
@ -151,7 +151,7 @@ class PromoteController extends ThinkController
reset($arr); reset($arr);
$sign = md5(http_build_query($arr) . 'wmkjtx_kj213'); $sign = md5(http_build_query($arr) . 'wmkjtx_kj213');
$arr['sign'] = $sign; $arr['sign'] = $sign;
$re_data = curl_post('http://test.oa.76ba.com/api/wanmeng/verifyBind', $arr); $re_data = curl_post(C('OA.formalUrl') . '/api/wanmeng/verifyBind', $arr);
$re_data = json_decode($re_data, true)['data']; $re_data = json_decode($re_data, true)['data'];
foreach ($list_data as $k => $v) { foreach ($list_data as $k => $v) {
$oa_val = $re_data[trim($v['account'])]; $oa_val = $re_data[trim($v['account'])];

Loading…
Cancel
Save