Commit fdf03ae1 by 孙龙

up

parent d668c01b
Showing with 17 additions and 8 deletions
......@@ -57,5 +57,5 @@ MAIL_ENCRYPTION=tls
ADMIN=liuzhiyong@teshehui.com
LOGIN_DOMAIN='user.liexin.net'
ERP_SUPPLY_DOMAIN=http://192.168.1.235:6888
ERP_DOMAIN=http://192.168.1.235:6888
ERP_DB_NAME=ICHUNT
\ No newline at end of file
......@@ -92,9 +92,10 @@ Class AjaxController extends Controller
$tmpl->status = ($tmpl->status == -1) ? 1 :-1;
$tmpl->save();
//此处推送到erp
$a = $this->erp->createIssueLabel(1,"测试模板0001","田超",1);
dump($a);
$this->pushTemplateErp();
// dump($this->erp);
// $a = $this->erp->createIssueLabel(1,"测试模板0001","田超",1);
// dump($a);
return $this->ajaxReturn(0,"修改成功");
......@@ -140,12 +141,19 @@ Class AjaxController extends Controller
protected function pushTemplateErp(){
try{
//登录
$soap = new \SoapClient(env("ERP_SUPPLY_DOMAIN").'/ormrpc/services/EASLogin?wsdl');
$res = $soap->login('PT', '123456', 'eas', env('ERP_SUPPLY_DB_NAME'), 'L2', 1, 'BaseDB');
$soap = new \SoapClient(env("ERP_DOMAIN").'/ormrpc/services/EASLogin?wsdl');
$res = $soap->login('PT', '123456', 'eas', env('ERP_DB_NAME'), 'L2', 1, 'BaseDB');
//接口
$this->erp = new \SoapClient(ENV("ERP_SUPPLY_DOMAIN").'/ormrpc/services/WSIchuntjKFacade?wsdl');
$this->erp = new \SoapClient(ENV("ERP_DOMAIN").'/ormrpc/services/WSIchuntjKFacade?wsdl');
dump($this->erp);
$this->erp->createIssueLabel(json_encode([
"TemplateId"=>1,
"templateNmae"=>"aaaa",
"createUser"=>"bbbb",
"status"=>1,
]));
}catch(\Exception $e){
dump($e->getMessage());
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment