Commit 2d39b246 by 肖康
parents a75a369f 90ebb945
...@@ -57,5 +57,5 @@ MAIL_ENCRYPTION=tls ...@@ -57,5 +57,5 @@ MAIL_ENCRYPTION=tls
ADMIN=liuzhiyong@teshehui.com ADMIN=liuzhiyong@teshehui.com
LOGIN_DOMAIN='user.liexin.net' LOGIN_DOMAIN='user.liexin.net'
ERP_SUPPLY_DOMAIN=http://192.168.1.235:6888 ERP_DOMAIN=http://192.168.1.235:6888
ERP_SUPPLY_DB_NAME=demo ERP_DB_NAME=ICHUNT
\ No newline at end of file \ No newline at end of file
...@@ -15,3 +15,4 @@ Homestead.json ...@@ -15,3 +15,4 @@ Homestead.json
/storage/debugbar /storage/debugbar
.DS_Store .DS_Store
*/.DS_Store */.DS_Store
.env
\ No newline at end of file
...@@ -92,9 +92,10 @@ Class AjaxController extends Controller ...@@ -92,9 +92,10 @@ Class AjaxController extends Controller
$tmpl->status = ($tmpl->status == -1) ? 1 :-1; $tmpl->status = ($tmpl->status == -1) ? 1 :-1;
$tmpl->save(); $tmpl->save();
//此处推送到erp //此处推送到erp
$this->pushTemplateErp();
$a = $this->erp->createIssueLabel(1,"测试模板0001","田超",1); // dump($this->erp);
dump($a); // $a = $this->erp->createIssueLabel(1,"测试模板0001","田超",1);
// dump($a);
return $this->ajaxReturn(0,"修改成功"); return $this->ajaxReturn(0,"修改成功");
...@@ -140,12 +141,21 @@ Class AjaxController extends Controller ...@@ -140,12 +141,21 @@ Class AjaxController extends Controller
protected function pushTemplateErp(){ protected function pushTemplateErp(){
try{ try{
//登录 //登录
$soap = new \SoapClient(env("ERP_SUPPLY_DOMAIN").'/ormrpc/services/EASLogin?wsdl'); $soap = new \SoapClient(env("ERP_DOMAIN").'/ormrpc/services/EASLogin?wsdl');
$res = $soap->login('PT', '123456', 'eas', env('ERP_SUPPLY_DB_NAME'), 'L2', 1, 'BaseDB'); $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,
]));
return true;
}catch(\Exception $e){ }catch(\Exception $e){
return false;
// dump($e->getMessage());
} }
} }
......
...@@ -54,7 +54,7 @@ class WebController extends Controller ...@@ -54,7 +54,7 @@ class WebController extends Controller
// 首页 // 首页
public function index(Request $request) public function index(Request $request)
{ {
$JobsModel = new JobsModel(); // $JobsModel = new JobsModel();
$info = $this->getPageInfo($request); $info = $this->getPageInfo($request);
......
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