微信项目二维码修改
This commit is contained in:
parent
84f0069cbd
commit
fa43924330
|
@ -934,7 +934,7 @@ class Project < ActiveRecord::Base
|
||||||
response = Wechat.api.qrcode_create_scene(invite_code, 2592000)
|
response = Wechat.api.qrcode_create_scene(invite_code, 2592000)
|
||||||
logger.debug "response = #{response}"
|
logger.debug "response = #{response}"
|
||||||
self.qrcode = response['ticket']
|
self.qrcode = response['ticket']
|
||||||
save! && reload
|
save!
|
||||||
ticket = qrcode
|
ticket = qrcode
|
||||||
end
|
end
|
||||||
ticket
|
ticket
|
||||||
|
|
|
@ -30,13 +30,10 @@ app.controller('EditClassMemberController', ['$scope', '$http', 'auth', 'config'
|
||||||
console.log(vm.current_edit_member);
|
console.log(vm.current_edit_member);
|
||||||
|
|
||||||
vm.cancel = function(){
|
vm.cancel = function(){
|
||||||
vm.alertService.showMessage('提示', '您确定不对角色进行变更吗?', function(){
|
// vm.alertService.showMessage('提示', '您确定不对角色进行变更吗?', function(){
|
||||||
// rms.save("project_master_members",[]);
|
// window.history.back();
|
||||||
// rms.save("project_develop_members",[]);
|
// });
|
||||||
// rms.save("project_report_members",[]);
|
|
||||||
window.history.back();
|
window.history.back();
|
||||||
// $location.path("/project").search({id: project_id});
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
vm.edit_member_role = function(){
|
vm.edit_member_role = function(){
|
||||||
|
|
|
@ -31,13 +31,10 @@ app.controller('EditProjectMemberController', ['$scope', '$http', 'auth', 'confi
|
||||||
console.log(vm.current_edit_member);
|
console.log(vm.current_edit_member);
|
||||||
|
|
||||||
vm.cancel = function(){
|
vm.cancel = function(){
|
||||||
vm.alertService.showMessage('提示', '您确定不对角色进行变更吗?', function(){
|
// vm.alertService.showMessage('提示', '您确定不对角色进行变更吗?', function(){
|
||||||
// rms.save("project_master_members",[]);
|
// window.history.back();
|
||||||
// rms.save("project_develop_members",[]);
|
// });
|
||||||
// rms.save("project_report_members",[]);
|
|
||||||
window.history.back();
|
window.history.back();
|
||||||
// $location.path("/project").search({id: project_id});
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
vm.edit_member_role = function(){
|
vm.edit_member_role = function(){
|
||||||
|
|
Loading…
Reference in New Issue