作者 sgj
1 个管道 的构建 通过 耗费 0 秒

转诊诊增加积分

@@ -668,6 +668,7 @@ class IndexController extends WeChatBaseController @@ -668,6 +668,7 @@ class IndexController extends WeChatBaseController
668 $this->assign('sdk',$sdk); 668 $this->assign('sdk',$sdk);
669 $platment=$Hospital->getPaltform()->toArray(); 669 $platment=$Hospital->getPaltform()->toArray();
670 $hospital=$Hospital->getHospital()->toArray(); 670 $hospital=$Hospital->getHospital()->toArray();
  671 + $this->assign(cmf_get_option('site_info'));
671 $this->assign('hospital',$hospital); 672 $this->assign('hospital',$hospital);
672 $this->assign('platment',$platment); 673 $this->assign('platment',$platment);
673 $this->assign('sdk',$sdk); 674 $this->assign('sdk',$sdk);
@@ -705,7 +706,8 @@ class IndexController extends WeChatBaseController @@ -705,7 +706,8 @@ class IndexController extends WeChatBaseController
705 $insert['delete_time']=0; 706 $insert['delete_time']=0;
706 $model=new TransferModel(); 707 $model=new TransferModel();
707 $model->adminAdd($insert); 708 $model->adminAdd($insert);
708 - addScore($insert['user_id'],50,'提交转诊'); 709 + $site=cmf_get_option('site_info');
  710 + addScore($insert['user_id'],$site['transfer'],'提交转诊');
709 $this->success('',url('index'),$insert); 711 $this->success('',url('index'),$insert);
710 } 712 }
711 713
@@ -899,7 +899,7 @@ @@ -899,7 +899,7 @@
899 photos:serverIds 899 photos:serverIds
900 }, 900 },
901 success:function (res) { 901 success:function (res) {
902 - weui.toast(res.msg); 902 + weui.toast("提交成功,增加{$inquiry}积分");
903 if(res.code==1){ 903 if(res.code==1){
904 setTimeout(function () { 904 setTimeout(function () {
905 window.location.href=res.url; 905 window.location.href=res.url;
@@ -1096,7 +1096,7 @@ @@ -1096,7 +1096,7 @@
1096 photos:serverIds 1096 photos:serverIds
1097 }, 1097 },
1098 success:function (res) { 1098 success:function (res) {
1099 - weui.toast(res.msg); 1099 + weui.toast("提交成功,增加{$transfer}积分");
1100 if(res.code==1){ 1100 if(res.code==1){
1101 setTimeout(function () { 1101 setTimeout(function () {
1102 window.location.href=res.url; 1102 window.location.href=res.url;