Commit c2659162 by doszhang

dos

parent 33ddc7b1
...@@ -13,7 +13,7 @@ return array( ...@@ -13,7 +13,7 @@ return array(
'AUTH_CLIENT_ID' => 'zhida_app', 'AUTH_CLIENT_ID' => 'zhida_app',
'AUTH_CLIENT_PASSWORD' => 'izhida', 'AUTH_CLIENT_PASSWORD' => 'izhida',
/* CDN路径配置。配置之后可以在模版文件中使用__CDN__ */ /* CDN路径配置。配置之后可以在模版文件中使用__CDN__ */
'__CDN__' => 'http://static3.iacode.cn/cdn1/x50-avatar/v1.2.0', '__CDN__' => 'http://static3.iacode.cn/cdn1/x50-avatar/v1.2.1',
// '__CDN__' => '/Public/static', // @readme <-- 上线时修改这里 // '__CDN__' => '/Public/static', // @readme <-- 上线时修改这里
'URL_MODEL' => 3, 'URL_MODEL' => 3,
'STORAGE_PATH' => WEB_ROOT_PATH . '/Data/Storage', 'STORAGE_PATH' => WEB_ROOT_PATH . '/Data/Storage',
......
...@@ -146,7 +146,6 @@ $(document).ready(function () { ...@@ -146,7 +146,6 @@ $(document).ready(function () {
ctx2.textAlign = 'left'; ctx2.textAlign = 'left';
ctx2.textBaseline = 'top'; ctx2.textBaseline = 'top';
var left = (img.width - ctx2.measureText(text).width) / 2; var left = (img.width - ctx2.measureText(text).width) / 2;
alert(1);
ctx2.shadowBlur = 0; ctx2.shadowBlur = 0;
ctx2.fillText(text, left, top * 2); ctx2.fillText(text, left, top * 2);
$('.page:visible').find('.showBox').show().html('<img src="' + canvas2.toDataURL('image/png') + '">'); $('.page:visible').find('.showBox').show().html('<img src="' + canvas2.toDataURL('image/png') + '">');
......
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