dope2008

4451 经验值

@JellyBool 原生html,数据不好写,比如下拉框,默认值等等,

{!! Form::submit('查询',['class'=>'btn btn-danger']) !!}

我想这个按钮加一个图标,想问一下怎么样加呢

/resources/lang/zh/validation.php 是不是在这里写的

我在

app/Providers/AppServiceProvider.php

boot写了一个自定义的验证 


Validator::extend('campaignUrl', function ($attribute, $value, $parameters) { if($value>100) { return true; } return false;});


那么请问。我的验证提示语在那里写的,难道要去Request写?

我创建订单好了。

先用支付宝支付(只是到支付界面,不按密码),,,这样支付宝就有一条订单了。

然后我回到我的系统,刷新页面,订单应该还是没有支付状态。我现在用微信支付,

完成后我回到支付宝,那个订单还是有的,我又支付,那我不是支付二次了?

$attributes= [
 "body" => "充值1.00元" ,
 "detail" => "充值1.00元",
"total_fee" => 100,
"out_trade_no" => "trading_831",
"notify_url" => "http://100huatong.local/api/weixin/notify" 
];
$order = new Order($attributes); 
$weChat = app('wechat'); 
$payment = $weChat->payment; 
return $payment->pay($order);

不知道这样对不对。

输出结果

{"return_code":"FAIL","return_msg":"缺少参数"}
[2016-04-07 13:46:19] easywechat.DEBUG: Current configuration: {"debug":true,

"use_laravel_cache":true,
"app_id":"wxc43d565a4e53fd60",
"secret":"15fa74f59927d82bff39c805552495cd",
"token":"jdsfjksfjdssdkdjsjakjsa",
"aes_key":"Peey7Fq5ukq3KuUxductkwLNJOFYt3oXIGYaEQTkQOO",
"log":{"level":"debug","file":"/var/www/html/storage/logs/wechat.log"},

"payment":{"merchant_id":1268486101,"key":"17fa74f59927d82bff39c805552495bb",
"cert_path":"path/to/your/cert.pem","key_path":"path/to/your/key"} 

[][2016-04-07 13:46:19] easywechat.DEBUG: Request received: 

{"Method":"GET","URI":"/api/weixin?signature=6a72792fc1bf952dfbe713aa8fba2e95abdcb01c&echostr=9097959990242047930×tamp=1460007978&nonce=362002840","Query":"echostr=9097959990242047930&nonce=362002840&signature=6a72792fc1bf952dfbe713aa8fba2e95abdcb01c×tamp=1460007978","Protocal":"HTTP/1.0","Content":""} 

[][2016-04-07 13:46:19] easywechat.DEBUG: Output 'echostr' is '9097959990242047930'. [] []



验证失败

@AdamLee李镇东 怎么样生成二维码的?