提交 3823dc9a authored 作者: chengye's avatar chengye

调整接口地址

上级 abf057a0
...@@ -458,7 +458,18 @@ class Payment extends Base ...@@ -458,7 +458,18 @@ class Payment extends Base
foreach ($data as $k => $v){ foreach ($data as $k => $v){
if($k != 'remarks'){ if($k != 'remarks'){
if(empty($v)) return json(['status'=>0,'message'=>'字段值'.$k.'必填,请检查']); switch ($k){
case 'fkinfo':
$msg = '付款信息';
break;
case 'date':
$msg = '付款日期';
break;
case 'title':
$msg = '单据抬头';
break;
}
if(empty($v)) return json(['status'=>0,'message'=>'字段值'.$msg.'必填,请检查']);
} }
if($k == 'details') { if($k == 'details') {
foreach ($v as $a=>$b){ foreach ($v as $a=>$b){
......
<?php <?php
return [ return [
'oa_key' => '5bdfcedb618e1e03abf18e391278c1f4', 'oa_key' => '5bdfcedb618e1e03abf18e391278c1f4',
'base_url' => 'http://chengye-dev.gonn.tech', 'base_url' => 'http://oa-test.gonn.tech/',
'gys' => '/api.php?m=opensupplier&a=list&openkey=', 'gys' => '/api.php?m=opensupplier&a=list&openkey=',
'type' => '/api.php?m=openfkinfo&a=fkinfor&openkey=', 'type' => '/api.php?m=openfkinfo&a=fkinfor&openkey=',
'fk' => '/api.php?m=openfk&a=create&openkey=', 'fk' => '/api.php?m=openfk&a=create&openkey=',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论