作者 郭盛
1 个管道 的构建 通过 耗费 4 秒

修改获取session_key

... ... @@ -29,6 +29,7 @@ class Order extends Api
* @ApiParams (name="teacher_id", type="int", required=true, description="老师ID")
* @ApiParams (name="territory_id", type="int", required=true, description="咨询领域ID")
* @ApiParams (name="is_use", type="int", required=true, description="是否适用优惠劵(0不使用,1使用)")
* @ApiParams (name="coupon_id", type="int", required=false, description="优惠劵ID")
* @ApiParams (name="money", type="string", required=false, description="金额")
* @ApiParams (name="business", type="string", required=false, description="所属行业")
* @ApiParams (name="address", type="string", required=false, description="经营地区/职能类别")
... ... @@ -62,6 +63,9 @@ class Order extends Api
if (!$validate->check($param)) {
$this->error($validate->getError());
}
if($param['is_use'] == 1){
}
$yong = Db::name('commission')
->where('id',1)
->find();
... ...
... ... @@ -54,7 +54,7 @@ class User extends Api
$code = $data['code'];
$appId = config('app_id');
$appSecret = config('app_secret');
$appSecret = config('app_secrets');
$response = "https://api.weixin.qq.com/sns/jscode2session?appid=$appId&secret=$appSecret&js_code=$code&grant_type=authorization_code";
$response = $this->http_get($response);
... ...
... ... @@ -282,7 +282,7 @@ return [
],
//小程序参数
'app_id' => 'wxe47ca040e37484a7',
'app_secret' => 'f8782151f37d47015268e30890c1b275',
'app_secrets' => 'f8782151f37d47015268e30890c1b275',
//商户账号
'wx_mch_id' => '1567728571',
'wx_pay_key' => 'c2P0MOK0otuL6dFo520jRotFTsmvNqNc', // 支付 密钥
... ...
... ... @@ -2799,6 +2799,12 @@
<td>是否适用优惠劵(0不使用,1使用</td>
</tr>
<tr>
<td>coupon_id</td>
<td>int</td>
<td></td>
<td>优惠劵ID</td>
</tr>
<tr>
<td>money</td>
<td>string</td>
<td></td>
... ... @@ -2876,6 +2882,10 @@
<input type="int" class="form-control input-sm" id="is_use" required placeholder="是否适用优惠劵(0不使用,1使用" name="is_use">
</div>
<div class="form-group">
<label class="control-label" for="coupon_id">coupon_id</label>
<input type="int" class="form-control input-sm" id="coupon_id" placeholder="优惠劵ID" name="coupon_id">
</div>
<div class="form-group">
<label class="control-label" for="money">money</label>
<input type="string" class="form-control input-sm" id="money" placeholder="金额" name="money">
</div>
... ... @@ -6524,7 +6534,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2020-01-17 11:17:18 </div>
Generated on 2020-01-17 14:06:34 </div>
<div class="col-md-6" align="right">
<a href="https://www.fastadmin.net" target="_blank">FastAdmin</a>
</div>
... ...