myfirstshop
所属分类:WEB开发
开发工具:PHP
文件大小:12572KB
下载次数:5
上传日期:2014-12-02 11:09:48
上 传 者:
yuqingpp
说明: 我毕业设计的第一个b2c商城网站,后台功能强大。
(I graduated design first b2c mall site.)
文件列表:
images\200905\goods_img\10_G_1242973436141.jpg (7016, 2014-11-05)
images\200905\goods_img\10_P_1242973436620.jpg (8853, 2014-11-05)
images\200905\goods_img\12_G_1241965978209.jpg (5078, 2014-11-05)
images\200905\goods_img\12_P_1241965978060.jpg (6099, 2014-11-05)
images\200905\goods_img\12_P_1241966218046.jpg (13183, 2014-11-05)
images\200905\goods_img\12_P_1241966218391.jpg (7403, 2014-11-05)
images\200905\goods_img\13_G_1241968002233.jpg (6095, 2014-11-05)
images\200905\goods_img\13_P_1241967762510.jpg (6099, 2014-11-05)
images\200905\goods_img\13_P_1241968002659.jpg (7115, 2014-11-05)
images\200905\goods_img\14_G_1241968492932.jpg (6039, 2014-11-05)
images\200905\goods_img\14_P_1241968492279.jpg (14190, 2014-11-05)
images\200905\goods_img\14_P_1241968492721.jpg (81132, 2014-11-05)
images\200905\goods_img\14_P_1241968492774.jpg (6879, 2014-11-05)
images\200905\goods_img\15_G_1242973362318.jpg (7778, 2014-11-05)
images\200905\goods_img\15_P_1242973362276.jpg (12281, 2014-11-05)
images\200905\goods_img\16_G_1241968949002.jpg (5475, 2014-11-05)
images\200905\goods_img\16_P_1241968949498.jpg (5480, 2014-11-05)
images\200905\goods_img\17_G_1241969394677.jpg (8079, 2014-11-05)
images\200905\goods_img\17_P_1241969394354.jpg (8097, 2014-11-05)
images\200905\goods_img\19_G_1241970175091.jpg (5573, 2014-11-05)
images\200905\goods_img\19_P_1241970140600.jpg (50101, 2014-11-05)
images\200905\goods_img\19_P_1241970140820.jpg (95795, 2014-11-05)
images\200905\goods_img\19_P_1241970175007.jpg (6032, 2014-11-05)
images\200905\goods_img\1_G_1240902890755.jpg (5742, 2014-11-05)
images\200905\goods_img\1_P_1240902890730.gif (14615, 2014-11-05)
images\200905\goods_img\1_P_1240904370445.jpg (38003, 2014-11-05)
images\200905\goods_img\1_P_1240904371252.jpg (20255, 2014-11-05)
images\200905\goods_img\1_P_1240904371355.jpg (30195, 2014-11-05)
images\200905\goods_img\1_P_1240904371414.jpg (20027, 2014-11-05)
images\200905\goods_img\20_G_1242106490663.jpg (4966, 2014-11-05)
images\200905\goods_img\20_P_1242106383902.gif (43, 2014-11-05)
images\200905\goods_img\20_P_1242106490582.jpg (3896, 2014-11-05)
images\200905\goods_img\21_G_1242109298873.jpg (6011, 2014-11-05)
images\200905\goods_img\21_P_1242109298519.jpg (7746, 2014-11-05)
images\200905\goods_img\22_G_1241971076358.jpg (6357, 2014-11-05)
images\200905\goods_img\22_P_1241971076061.jpg (7342, 2014-11-05)
images\200905\goods_img\23_G_1241971556855.jpg (7105, 2014-11-05)
images\200905\goods_img\23_P_1241971556661.jpg (8144, 2014-11-05)
images\200905\goods_img\24_G_1241971981284.jpg (5813, 2014-11-05)
images\200905\goods_img\24_P_1241971981420.jpg (5328, 2014-11-05)
... ...
shopex Prism sdk (php version)
=================================
## 基本设置
```php
require_once('prism-php/lib/client.php');
$url = 'http://127.0.0.1:8080/api';
$key = 'ysw6o4wl';
$secret = 'fe24mkjmxh5wch4cbob7';
$c = new prism_client($url, $key, $secret);
/* 日志信息输出
* $c->set_logger(function($message){
* echo $message;
* flush();
* });
*/
```
## 发起Api请求
```php
$params = array(
'username'=>'b',
'password'=>'c',
);
$a = $c->post('/user/login', $params);
var_dump($a);
```
## 消息队列
### 发布数据
```php
$mq = $c->notify();
$i=0;
while(1){
$data = $mq->get();
echo $data, "\n";
$data->ack();
$i++;
}
```
- [视频演示][1]
### 消费队列中的数据
```php
$mq = $c->notify();
$i=0;
while(1){
$data = $mq->get();
echo $data, "\n";
$data->ack();
$i++;
}
```
- [视频演示][2]
[1]: http://asciinema.org/a/6541 "产生数据"
[2]: http://asciinema.org/a/6541 "消费数据"
近期下载者:
相关文件:
收藏者: